PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.15.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.15.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 1.1.0 All 82 releases
← All changes | assets/build/blocks.js +1021 -1019 2.14.0 → 2.15.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}},14030(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}},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",
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,
@@ -12,56 +12,56 @@
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 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);const Ct={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},...(0,w.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,unitDefaultValue:"px",defaultValue:12,copyStyle:!0}),...b.Ay},At={block_id:{type:"string",default:""},...b.Ay},Lt={block_id:{type:"string",default:""},qrValue:{type:"string",default:""},blockVersion:{type:"number",
17 -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);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",
18 -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,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:{
19 -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:[]},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",
20 -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",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,
21 -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"},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:{
22 -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"},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),
23 -...(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},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),
24 -...(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:""},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,
25 -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"),...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:{
26 -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,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:""},
27 -...(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",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$)({
28 -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",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:""
29 -},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:""},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),
30 -...(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),...(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:""},
31 -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:{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",
32 -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",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:{
33 -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",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:{
34 -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,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:{
35 -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,"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,
36 -"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,"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,"marquee-child":At,"qr-code":Lt,"loop-builder":Nt.A,"loop-template":It.Ay,
37 -"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,"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,
38 -"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),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\//
39 -;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,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})
40 -;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;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":
41 -return"480px";default:return"1200px"}}}},67083(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",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}
42 -},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)}:[],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,
43 -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}];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)
44 -;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))),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")),
45 -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=>{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})=>{
46 -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} } }`)),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||{}
47 -;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,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)},{
48 -...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")),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??{})})}
49 -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},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")
50 -;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}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]
51 -;"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=>{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,
52 -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}),"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",
53 -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:{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=>{
54 -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()||[]}),[]),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,
55 -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=>{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}
56 -;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",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,
57 -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,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"}),
58 -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,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""
59 -;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`,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",{
60 -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")}),(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",{
61 -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]=""}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,
62 -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"}})}},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")
63 -;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=>{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}
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 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 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 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 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)
@@ -2041,44 +2041,44 @@
2041 2041 L.__)("Shape","ablocks"),options:Bf,attributeValue:p,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:s,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Vf.RK,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:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:y,setAttributes:i}),(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.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})})})]})})})}
2042 2042 Ff.propTypes={};const qf={UU:"ablocks/lists",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},markerType:{type:"string",default:"icon"},markerColor:{type:"string",default:""},emoji:{type:"string",default:"✍"},iconColor:{type:"string",default:"#000000"},lists:{type:"array",default:[{id:0,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",makerColor:"",isOpen:!1}]},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"},belowItem:{type:"number",default:0},divider:{type:"boolean",default:!1},dividerPatternUrl:{type:"string",default:"solid"},borderColor:{type:"string",default:"#000000"},position:{type:"object",default:{value:"center",
2043 2043 valueTablet:"",valueMobile:""}},horizontalAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},padding:{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:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",
2044 2044 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:""}},
2045 -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:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},verticalAlignment:{type:"string",default:"flex-start"},stack:{type:"string",default:"vertical"},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},markerSize:{type:"number",default:10},textIndent:{type:"object",default:{value:8,valueTablet:8,valueMobile:8}},
2046 -spaceBetween:{type:"object",default:{value:20,valueTablet:20,valueMobile:20}},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"object",default:{value:5,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:{
2047 -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:"",
2048 -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:{
2049 -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:"",
2050 -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:"",
2051 -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:"",
2052 -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:"",
2053 -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:"",
2054 -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 $f({index:t,attributes:e,list:i,setAttributes:o,isSave:l}){const{markerType:n,emoji:s,listIcons:r,lists:b}=e,c=i?.link||{},{linkTarget:d,href:u="",noFollow:p,keyValue:m}=c;let h={};u&&(h.href=u),d&&(h.target="_blank"),h.rel=p?d?"nofollow noreferrer noopener":"nofollow":"noopener",m&&(h={...h,...(0,wb.jM)(m)});const g=u?"a":"div"
2055 -;return(0,a.createElement)(g,{...u?h:{},key:i?.id,className:"ablocks-list__item-content"},(0,I.jsx)(Ef,{markerType:n,emoji:s,index:t,iconAttributes:r,listProperties:i}),l?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,Hs.qD)(i?.textColor)}}):(0,I.jsx)(D.RichText,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",onChange:t=>((t,e,i)=>{const a=b.map(o=>o.id===t?{...o,[i]:e}:o);o({lists:a})})(i?.id,t,"text"),style:{color:(0,Hs.qD)(i?.textColor)},placeholder:(0,L.__)("Enter Your Text","ablocks")}))}const Gf=({addNewListItem:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"plus",label:(0,L.__)("Add item","ablocks"),onClick:t})});function Zf(t){const{attributes:e,setAttributes:i}=t,{block_id:o,lists:n,listIconsClasses:s,markerType:r,listIcons:b,divider:c}=e;let d=Array.isArray(n)&&n.length?n[n.length-1].id+1:0;return(0,a.useEffect)(()=>{if("icon"===r){if(b?.length!==s?.length){const t=[]
2056 -;for(const e of s||[]){const i={};let o="",a="";if(!e){t.push({viewBox:o,path:a});continue}switch(e.substring(2,3)){case"r":i.data=Cd;break;case"s":i.data=Ld;break;case"b":i.data=Ad}const l=e.substring(7),n=i.data[l];o=`0 0 ${n[0]} ${n[1]}`,a=n[4],t.push({viewBox:o,path:a})}i({listIcons:t})}}else i({listIcons:[]})},[r,s?.length,b?.length]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Gf,{addNewListItem:()=>{const t={id:d++,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},e=n.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t],listIconsClasses:[...s||[]]})}}),(0,I.jsx)(Yb.A,{blockId:o,name:qf.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("div",{className:"ablocks-list",children:n?.map((t,o)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)($f,{index:o,attributes:e,list:t,setAttributes:i},o),c&&(0,
2057 -I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})]})}Zf.propTypes={};const Kf=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:[];return{...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(i,e,o)}},Jf=(t,e="")=>{const i={},{spaceBetween:o,horizontalAlignment:a}=t,l=t[`stack${e}`]||t.stack,n=t[`verticalAlignment${e}`]||t.verticalAlignment;return""!==o["value"+e]&&void 0!==o["value"+e]&&(i.gap=`${o["value"+e]}px`),"vertical"===l?(i["flex-direction"]="column",n&&(i["align-items"]=n)):"horizontal"===l&&(i["flex-direction"]="row",a&&(i["justify-content"]=a)),{...i,...(0,Zt.qD)(t?.horizontalAlignment,"justify-content",e),...(0,p.qD)(t[`width${e}`]||t.width,"width",e)}},Qf=(t,e="")=>{const{position:i,textIndent:o,markerType:a}=t,l={};return"icon"===a&&""!==i["value"+e]&&void 0!==i["value"+e]&&(l["align-items"]=i["value"+e]),""!==o["value"+e]&&void 0!==o["value"+e]&&(l.gap=`${o["value"+e]}px`),l},ty=(t,e="")=>{
2058 -const{divider:i,dividerPatternUrl:o,weight:a,borderColor:l,width:n,stack:s}=t,r={};let b={},c={};return i&&o&&("vertical"===s?(c={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"border-bottom-width",device:e})},r["border-bottom-color"]=(0,Hs.qD)(t?.borderColor)||"black",r["border-bottom-style"]=o):"horizontal"===s&&(c={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"border-right-width",device:e})},r["border-right-color"]=(0,Hs.qD)(t?.borderColor)||"black",r["border-right-style"]=o)),"vertical"===s&&(b={...(0,Eb.qD)({attributeValue:n,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}),{...r,...c,...b}},ey=(t,e)=>{const{markerColor:i,markerSize:o}=t,a={};if(""!==i&&void 0!==i&&(a.background=(0,Hs.qD)(t?.markerColor)),
2059 -""!==o["value"+e]&&void 0!==o["value"+e]){const t=`${o["value"+e]}px`;a["max-width"]=t,a["max-height"]=t,a["min-width"]=t,a["min-height"]=t,a["margin-top"]=`calc((1lh - ${t}) / 2)`}return a},iy=(t,e="")=>{const{iconSize:i,iconColor:o,markerType:a,iconType:l,iconShape:n,iconBackgroundColor:s}=t,r={};"icon"===a&&("stacked"===l?(r.background=(0,Hs.qD)(t?.iconBackgroundColor)||"#ddd",r.padding=".2em",r.color=(0,Hs.qD)(t?.iconColor)||"#000000","circle"===n&&(r["border-radius"]="50px")):"framed"===l&&(r.background=(0,Hs.qD)(t?.iconBackgroundColor)||"transparent",r.padding=".2em",r.color=(0,Hs.qD)(t?.iconColor)||"#69727d",r.border=`2px solid ${o||"#69727d"}`,"circle"===n&&(r["border-radius"]="50px")),""!==t["iconColor"+e]&&void 0!==t.iconColor&&(r.color=(0,Hs.qD)(t?.iconColor),r.fill=(0,Hs.qD)(t?.iconColor)),""!==s&&void 0!==s&&(r.background=(0,Hs.qD)(t?.iconBackgroundColor)));const b=(0,M.Zy)(t?.padding,{unit:"px"}),d=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...r,...(0,
2060 -Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e}),...(0,y.qD)(d,e),...(0,c.qD)(b,"padding",e)}},oy=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},ay=t=>({color:(0,Hs.qD)(t?.textColor)});function ly({index:t,attributes:e,list:i}){const{markerType:o,emoji:l,listIcons:n}=e,s=i?.link||{},{linkTarget:r,href:b="",noFollow:c,keyValue:d}=s;let u={};b&&(u.href=b),r&&(u.target="_blank"),u.rel=c?r?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(u={...u,...(0,wb.jM)(d)});const p=b?"a":"div";return(0,a.createElement)(p,{...b?u:{},key:i?.id,className:"ablocks-list__item-content"},(0,I.jsx)(Ef,{markerType:o,emoji:l,index:t,iconAttributes:n,listProperties:i}),(0,I.jsx)(D.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,Hs.qD)(i?.textColor)}}))}function ny(t){
2061 -const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qf.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ly,{index:i,attributes:e,list:t},i),a&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}ny.propTypes={};const sy={UU:"ablocks/lists",uK:{block_id:{type:"string",default:""},markerType:{type:"string",default:"icon"},markerColor:{type:"string",default:""},emoji:{type:"string",default:"✍"},iconColor:{type:"string",default:"#000000"},lists:{type:"array",default:[{id:0,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",makerColor:"",isOpen:!1}]},listIconsClasses:{type:"array",default:[]},listIcons:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{
2062 -type:"boolean",default:!1},iconBackgroundColor:{type:"string",default:""},textColor:{type:"string",default:"#000000"},belowItem:{type:"number",default:0},divider:{type:"boolean",default:!1},dividerPatternUrl:{type:"string",default:"solid"},borderColor:{type:"string",default:"#000000"},position:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},horizontalAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},padding:{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:"",
2063 -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:"",
2064 -topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},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"}},verticalAlignment:{type:"string",default:"flex-start"},stack:{
2065 -type:"string",default:"vertical"},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},markerSize:{type:"number",default:10},textIndent:{type:"object",default:{value:8,valueTablet:8,valueMobile:8}},spaceBetween:{type:"object",default:{value:20,valueTablet:20,valueMobile:20}},width:{type:"object",default:{value:100,valueTablet:30,valueMobile:20,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"object",default:{value:5,valueTablet:2,valueMobile:1,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:"",
2066 -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,isLinkedWidthHMobile:!0,
2067 -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:"",
2068 -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:"",
2069 -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:"",
2070 -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",
2071 -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:"",
2072 -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:"",
2073 -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 ry({index:t,attributes:e,list:i}){const{markerType:o,emoji:l,listIcons:n}=e,s=i?.link||{},{linkTarget:r,href:b="",noFollow:c,keyValue:d}=s;let u={};return b&&(u.href=b),r&&(u.target="_blank"),u.rel=c?r?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(u={...u,...(0,wb.jM)(d)}),(0,a.createElement)("a",{...u,key:i?.id,className:"ablocks-list__item-content"},(0,I.jsx)(Ef,{markerType:o,emoji:l,index:t,iconAttributes:n,listProperties:i}),(0,I.jsx)(D.RichText.Content,{tagName:"span",
2074 -value:i?.text,className:"ablocks-list__item-text",style:{color:(0,Hs.qD)(i?.textColor)}}))}function by(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:sy.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ry,{index:i,attributes:e,list:t},i),a&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}by.propTypes={},(0,M.xV)(qf.UU)&&(0,o.registerBlockType)(qf.UU,{title:(0,L.__)("List","ablocks"),attributes:qf.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""
2075 -;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",Kf(i),Kf(i,"Tablet"),Kf(i,"Mobile"),e(t=>Kf(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list",Jf(i),Jf(i,"Tablet"),Jf(i,"Mobile"),e(t=>Jf(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content",Qf(i),Qf(i,"Tablet"),Qf(i,"Mobile"),e(t=>Qf(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list_item-content-divider",ty(i),ty(i,"Tablet"),ty(i,"Mobile"),e(t=>ty(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-list__item-marker",ey(i,""),ey(i,"Tablet"),ey(i,"Mobile"),e(t=>ey(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-icon-wrap .ablocks-svg-icon",iy(i),iy(i,"Tablet"),iy(i,"Mobile"),e(t=>iy(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-icon-wrap:hover .ablocks-svg-icon",oy(i),oy(i,"Tablet"),oy(i,"Mobile"),e(t=>oy(i,t))),
2076 -t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-list__item-text",ay(i),ay(i),ay(i),e(t=>ay(i))),(0,b.applyFilters)("ablocks.lists.editorInlineCSS",null,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)(Zf,{...t})]})},save:ny,deprecated:[{attributes:qf.uK,save:function(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qf.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ry,{index:i,attributes:e,list:t},i),a&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}},{attributes:sy.uK,save:by}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"})});var cy=i(42314);function dy(t){const{hover:e,attributeName:i,setAttributes:o,attributeValue:n,isResponsive:s,label:r}=t,[b,c]=(0,
2077 -a.useState)(!1),[d,u]=(0,a.useState)(!1),p=(0,a.useRef)(null);let m="blur",h="brightness",g="contrast",f="saturate",y="hue";e&&(m="blurH",h="brightnessH",g="contrastH",f="saturateH",y="hueH"),(0,a.useEffect)(()=>{const t=(0,cy.tJ)(),e={blur:n[m],brightness:n[h],contrast:n[g],saturate:n[f],hue:n[y]},i=Object.keys(e).some(i=>e[i]!==t[i]);u(i)},[n,m,h,g,f,y]);const T=()=>{o({[i]:(0,M.jI)(cy.tJ,{...n,[m]:"",[h]:"",[g]:"",[f]:"",[y]:""})}),u(!1)},H=(t,e)=>o(s?{[i]:(0,M.jI)((0,cy.tJ)(),{...n,[e]:t})}:{[i]:t});return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[r&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:r,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",
2078 -ref:p,children:(0,I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[d&&(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:T,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:p,onClick:()=>{c(!b)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:b?"ablocks-component-popover__field--active":""})]})})}),b&&(0,I.jsx)(Xt,{isShowPrimaryLabel:!1,label:"CSS Filters",isReset:!0,handleReset:T,isVisible:b,toggleVisible:c,anchorRef:p,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{...t,min:0,max:5,step:.01,hasUnit:!1,isInline:!1,label:(0,L.__)("Blur","ablocks"),onChangeHandler:H,attributeObjectKey:m}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,onChangeHandler:H,label:(0,L.__)("Brightness","ablocks"),attributeObjectKey:h}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,
2079 -label:(0,L.__)("Contrast","ablocks"),onChangeHandler:H,attributeObjectKey:g}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Saturate","ablocks"),onChangeHandler:H,attributeObjectKey:f}),(0,I.jsx)(_t,{...t,min:0,max:360,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Hue","ablocks"),onChangeHandler:H,attributeObjectKey:y})]})})]})})]})}(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 uy=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Media File","ablocks"),value:"mediaFile"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom"}],py=[{label:(0,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"}],my=[{label:(0,L.__)("Static","ablocks"),
2080 -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"}],hy=[{label:(0,L.__)("Custom","ablocks"),value:void 0},{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 gy(t){
2045 +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:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},verticalAlignment:{type:"string",default:"flex-start"},stack:{type:"string",default:"vertical"},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},markerSize:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},textIndent:{type:"object",default:{value:8,
2046 +valueTablet:8,valueMobile:8}},spaceBetween:{type:"object",default:{value:20,valueTablet:20,valueMobile:20}},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"object",default:{value:5,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:{
2047 +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:"",
2048 +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",
2049 +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:"",
2050 +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:"",
2051 +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:"",
2052 +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:"",
2053 +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",
2054 +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 $f({index:t,attributes:e,list:i,setAttributes:o,isSave:l}){const{markerType:n,emoji:s,listIcons:r,lists:b}=e,c=i?.link||{},{linkTarget:d,href:u="",noFollow:p,keyValue:m}=c;let h={};u&&(h.href=u),d&&(h.target="_blank"),h.rel=p?d?"nofollow noreferrer noopener":"nofollow":"noopener",m&&(h={
2055 +...h,...(0,wb.jM)(m)});const g=u?"a":"div";return(0,a.createElement)(g,{...u?h:{},key:i?.id,className:"ablocks-list__item-content"},(0,I.jsx)(Ef,{markerType:n,emoji:s,index:t,iconAttributes:r,listProperties:i}),l?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,Hs.qD)(i?.textColor)}}):(0,I.jsx)(D.RichText,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",onChange:t=>((t,e,i)=>{const a=b.map(o=>o.id===t?{...o,[i]:e}:o);o({lists:a})})(i?.id,t,"text"),style:{color:(0,Hs.qD)(i?.textColor)},placeholder:(0,L.__)("Enter Your Text","ablocks")}))}const Gf=({addNewListItem:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"plus",label:(0,L.__)("Add item","ablocks"),onClick:t})});function Zf(t){const{attributes:e,setAttributes:i}=t,{block_id:o,lists:n,listIconsClasses:s,markerType:r,listIcons:b,divider:c}=e;let d=Array.isArray(n)&&n.length?n[n.length-1].id+1:0;return(0,a.useEffect)(()=>{
2056 +if("icon"===r){if(b?.length!==s?.length){const t=[];for(const e of s||[]){const i={};let o="",a="";if(!e){t.push({viewBox:o,path:a});continue}switch(e.substring(2,3)){case"r":i.data=Cd;break;case"s":i.data=Ld;break;case"b":i.data=Ad}const l=e.substring(7),n=i.data[l];o=`0 0 ${n[0]} ${n[1]}`,a=n[4],t.push({viewBox:o,path:a})}i({listIcons:t})}}else i({listIcons:[]})},[r,s?.length,b?.length]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Gf,{addNewListItem:()=>{const t={id:d++,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},e=n.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t],listIconsClasses:[...s||[]]})}}),(0,I.jsx)(Yb.A,{blockId:o,name:qf.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("div",{className:"ablocks-list",children:n?.map((t,o)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)($f,{index:o,
2057 +attributes:e,list:t,setAttributes:i},o),c&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})]})}Zf.propTypes={};const Kf=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:[];return{...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(i,e,o)}},Jf=(t,e="")=>{const i={},{spaceBetween:o,horizontalAlignment:a}=t,l=t[`stack${e}`]||t.stack,n=t[`verticalAlignment${e}`]||t.verticalAlignment;return""!==o["value"+e]&&void 0!==o["value"+e]&&(i.gap=`${o["value"+e]}px`),"vertical"===l?(i["flex-direction"]="column",n&&(i["align-items"]=n)):"horizontal"===l&&(i["flex-direction"]="row",a&&(i["justify-content"]=a)),{...i,...(0,Zt.qD)(t?.horizontalAlignment,"justify-content",e),...(0,p.qD)(t[`width${e}`]||t.width,"width",e)}},Qf=(t,e="")=>{const{position:i,textIndent:o,markerType:a}=t,l={};return"icon"===a&&""!==i["value"+e]&&void 0!==i["value"+e]&&(l["align-items"]=i["value"+e]),
2058 +""!==o["value"+e]&&void 0!==o["value"+e]&&(l.gap=`${o["value"+e]}px`),l},ty=(t,e="")=>{const{divider:i,dividerPatternUrl:o,weight:a,borderColor:l,width:n,stack:s}=t,r={};let b={},c={};return i&&o&&("vertical"===s?(c={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"border-bottom-width",device:e})},r["border-bottom-color"]=(0,Hs.qD)(t?.borderColor)||"black",r["border-bottom-style"]=o):"horizontal"===s&&(c={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"border-right-width",device:e})},r["border-right-color"]=(0,Hs.qD)(t?.borderColor)||"black",r["border-right-style"]=o)),"vertical"===s&&(b={...(0,Eb.qD)({attributeValue:n,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}),{...r,...c,...b}},ey=(t,e)=>{const{markerColor:i,markerSize:o}=t,a={}
2059 +;if(""!==i&&void 0!==i&&(a.background=(0,Hs.qD)(t?.markerColor)),""!==o["value"+e]&&void 0!==o["value"+e]){const t=`${o["value"+e]}px`;a["max-width"]=t,a["max-height"]=t,a["min-width"]=t,a["min-height"]=t,a["margin-top"]=`calc((1lh - ${t}) / 2)`}return a},iy=(t,e="")=>{const{iconSize:i,iconColor:o,markerType:a,iconType:l,iconShape:n,iconBackgroundColor:s}=t,r={};"icon"===a&&("stacked"===l?(r.background=(0,Hs.qD)(t?.iconBackgroundColor)||"#ddd",r.padding=".2em",r.color=(0,Hs.qD)(t?.iconColor)||"#000000","circle"===n&&(r["border-radius"]="50px")):"framed"===l&&(r.background=(0,Hs.qD)(t?.iconBackgroundColor)||"transparent",r.padding=".2em",r.color=(0,Hs.qD)(t?.iconColor)||"#69727d",r.border=`2px solid ${o||"#69727d"}`,"circle"===n&&(r["border-radius"]="50px")),""!==t["iconColor"+e]&&void 0!==t.iconColor&&(r.color=(0,Hs.qD)(t?.iconColor),r.fill=(0,Hs.qD)(t?.iconColor)),""!==s&&void 0!==s&&(r.background=(0,Hs.qD)(t?.iconBackgroundColor)));const b=(0,M.Zy)(t?.padding,{unit:"px"}),d=(0,
2060 +M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...r,...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e}),...(0,y.qD)(d,e),...(0,c.qD)(b,"padding",e)}},oy=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},ay=t=>({color:(0,Hs.qD)(t?.textColor)});function ly({index:t,attributes:e,list:i}){const{markerType:o,emoji:l,listIcons:n}=e,s=i?.link||{},{linkTarget:r,href:b="",noFollow:c,keyValue:d}=s;let u={};b&&(u.href=b),r&&(u.target="_blank"),u.rel=c?r?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(u={...u,...(0,wb.jM)(d)});const p=b?"a":"div";return(0,a.createElement)(p,{...b?u:{},key:i?.id,className:"ablocks-list__item-content"},(0,I.jsx)(Ef,{markerType:o,emoji:l,index:t,iconAttributes:n,listProperties:i}),(0,I.jsx)(D.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,
2061 +Hs.qD)(i?.textColor)}}))}function ny(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qf.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ly,{index:i,attributes:e,list:t},i),a&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}ny.propTypes={};const sy={UU:"ablocks/lists",uK:{block_id:{type:"string",default:""},markerType:{type:"string",default:"icon"},markerColor:{type:"string",default:""},emoji:{type:"string",default:"✍"},iconColor:{type:"string",default:"#000000"},lists:{type:"array",default:[{id:0,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",makerColor:"",isOpen:!1}]},listIconsClasses:{type:"array",default:[]},listIcons:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{
2062 +type:"string",default:"circle"},iconBackground:{type:"boolean",default:!1},iconBackgroundColor:{type:"string",default:""},textColor:{type:"string",default:"#000000"},belowItem:{type:"number",default:0},divider:{type:"boolean",default:!1},dividerPatternUrl:{type:"string",default:"solid"},borderColor:{type:"string",default:"#000000"},position:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},horizontalAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},padding:{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:"",
2063 +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,
2064 +commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},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"}},
2065 +verticalAlignment:{type:"string",default:"flex-start"},stack:{type:"string",default:"vertical"},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},textIndent:{type:"object",default:{value:8,valueTablet:8,valueMobile:8}},spaceBetween:{type:"object",default:{value:20,valueTablet:20,valueMobile:20}},width:{type:"object",default:{value:100,valueTablet:30,valueMobile:20,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"object",default:{value:5,valueTablet:2,valueMobile:1,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,
2066 +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,
2067 +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:"",
2068 +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:"",
2069 +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:"",
2070 +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:"",
2071 +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:"",
2072 +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:{
2073 +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 ry({index:t,attributes:e,list:i}){const{markerType:o,emoji:l,listIcons:n}=e,s=i?.link||{},{linkTarget:r,href:b="",noFollow:c,keyValue:d}=s;let u={};return b&&(u.href=b),r&&(u.target="_blank"),u.rel=c?r?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(u={...u,...(0,wb.jM)(d)}),(0,a.createElement)("a",{...u,key:i?.id,className:"ablocks-list__item-content"},(0,I.jsx)(Ef,{markerType:o,emoji:l,index:t,iconAttributes:n,listProperties:i}),(0,
2074 +I.jsx)(D.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,Hs.qD)(i?.textColor)}}))}function by(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:sy.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ry,{index:i,attributes:e,list:t},i),a&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}by.propTypes={},(0,M.xV)(qf.UU)&&(0,o.registerBlockType)(qf.UU,{title:(0,L.__)("List","ablocks"),attributes:qf.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
2075 +;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}}",Kf(i),Kf(i,"Tablet"),Kf(i,"Mobile"),e(t=>Kf(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list",Jf(i),Jf(i,"Tablet"),Jf(i,"Mobile"),e(t=>Jf(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content",Qf(i),Qf(i,"Tablet"),Qf(i,"Mobile"),e(t=>Qf(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list_item-content-divider",ty(i),ty(i,"Tablet"),ty(i,"Mobile"),e(t=>ty(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-list__item-marker",ey(i,""),ey(i,"Tablet"),ey(i,"Mobile"),e(t=>ey(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-icon-wrap .ablocks-svg-icon",iy(i),iy(i,"Tablet"),iy(i,"Mobile"),e(t=>iy(i,t))),
2076 +t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-icon-wrap:hover .ablocks-svg-icon",oy(i),oy(i,"Tablet"),oy(i,"Mobile"),e(t=>oy(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-list__item-text",ay(i),ay(i),ay(i),e(t=>ay(i))),(0,b.applyFilters)("ablocks.lists.editorInlineCSS",null,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)(Zf,{...t})]})},save:ny,deprecated:[{attributes:qf.uK,save:function(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qf.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ry,{index:i,attributes:e,list:t},i),a&&(0,I.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}},{attributes:sy.uK,save:by}],icon:(0,I.jsx)("span",{
2077 +className:"ablocks-icon ablocks-icon--block-list"})});var cy=i(42314);function dy(t){const{hover:e,attributeName:i,setAttributes:o,attributeValue:n,isResponsive:s,label:r}=t,[b,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1),p=(0,a.useRef)(null);let m="blur",h="brightness",g="contrast",f="saturate",y="hue";e&&(m="blurH",h="brightnessH",g="contrastH",f="saturateH",y="hueH"),(0,a.useEffect)(()=>{const t=(0,cy.tJ)(),e={blur:n[m],brightness:n[h],contrast:n[g],saturate:n[f],hue:n[y]},i=Object.keys(e).some(i=>e[i]!==t[i]);u(i)},[n,m,h,g,f,y]);const T=()=>{o({[i]:(0,M.jI)(cy.tJ,{...n,[m]:"",[h]:"",[g]:"",[f]:"",[y]:""})}),u(!1)},H=(t,e)=>o(s?{[i]:(0,M.jI)((0,cy.tJ)(),{...n,[e]:t})}:{[i]:t});return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[r&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:r,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,I.jsxs)("div",{
2078 +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:p,children:(0,I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[d&&(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:T,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:p,onClick:()=>{c(!b)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:b?"ablocks-component-popover__field--active":""})]})})}),b&&(0,I.jsx)(Xt,{isShowPrimaryLabel:!1,label:"CSS Filters",isReset:!0,handleReset:T,isVisible:b,toggleVisible:c,anchorRef:p,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{...t,min:0,max:5,step:.01,hasUnit:!1,isInline:!1,label:(0,L.__)("Blur","ablocks"),onChangeHandler:H,attributeObjectKey:m}),(0,I.jsx)(_t,{...t,
2079 +min:0,max:200,step:1,hasUnit:!1,isInline:!1,onChangeHandler:H,label:(0,L.__)("Brightness","ablocks"),attributeObjectKey:h}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Contrast","ablocks"),onChangeHandler:H,attributeObjectKey:g}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Saturate","ablocks"),onChangeHandler:H,attributeObjectKey:f}),(0,I.jsx)(_t,{...t,min:0,max:360,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Hue","ablocks"),onChangeHandler:H,attributeObjectKey:y})]})})]})})]})}(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 uy=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Media File","ablocks"),value:"mediaFile"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom"}],py=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,
2080 +L.__)("Fill","ablocks"),value:"fill"},{label:(0,L.__)("Cover","ablocks"),value:"cover"},{label:(0,L.__)("Contain","ablocks"),value:"contain"}],my=[{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"}],hy=[{label:(0,L.__)("Custom","ablocks"),value:void 0},{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 gy(t){
2081 2081 const{attributes:e,setAttributes:i,isSelected:o,currentImageData:n,setCurrentImageData:s,context:b}=t,{imgId:c,imgIdTablet:d,imgIdMobile:u,imageDataAttribute:p,opacity:m,opacityH:h,aspectRatio:g,alignment:f,captionAlignment:y,cssFilter:T,cssHoverFilter:H,boxShadow:M,captionColor:x,captionBackground:k,captionTypography:v,captionPadding:_,captionBorder:R,filterTransitionDuration:S,imgLink:{linkDestination:W,href:P},widthHeightWidget:U={}}=e,j=lt(),w=U?.["showHeight"+j],z=U?.["width"+j],[C,A]=(0,a.useState)([]);let N;N="Tablet"===j?d||c:"Mobile"===j&&(u||d)||c;const{image:O}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:N&&o?e(N):null}},[o,N]);(0,a.useEffect)(()=>{if(O){i({imageDataAttribute:O});const t=O?.media_details?.sizes;A(Vd(t)),s(O)}else if(p?.id){const t=p?.media_details?.sizes;A(Vd(t)),s(p)}},[O]);const Y=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,attributeName:"imgUrl",deviceType:j,onSelectImageHandler:t=>Nd(t,e,i,j),
2082 2082 onRemoveImageHandler:()=>{i({imgId:void 0,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:void 0,imgUrlTablet:void 0,imgUrlMobile:void 0,imageDataAttribute:{},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}})},setAttributes:i}),C?.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Image sizes","ablocks"),isResponsive:!0,options:C,attributeName:"imgSize",attributeValue:e?.imgSize["value"+j],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}})(O||p,t),{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+j]:a,imgSize:{...e?.imgSize,["value"+j]:t},widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,
2083 2083 ["value"+j]:l||e?.objectFit["value"+j]},aspectRatio:{...e?.aspectRatio,["value"+j]:n||e?.aspectRatio["value"+j]}})}}),(0,I.jsx)(Ut,{label:(0,L.__)("Aspect ratio","ablocks"),isResponsive:!0,options:hy,onChangeHandler:t=>{const e={...g,["value"+j]:t},o={...U};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"+j]=a,a&&z&&(o["showHeight"+j]=!1,o["height"+j]=""),i({aspectRatio:e,widthHeightWidget:o})},attributeName:"aspectRatio",attributeValue:g,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:f,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)(It,{}),(0,I.jsx)(at,{label:(0,
2084 2084 L.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeValue:e?.widthHeightWidget["width"+j],onChangeHandler:t=>{const e={};if(t&&!isNaN(t)){if(e.widthHeightWidget={...U,["width"+j]:t},w)e.aspectRatio={...g,["ratio"+j]:"",["value"+j]:void 0};else if(e.widthHeightWidget={...e.widthHeightWidget,["height"+j]:""},!g["value"+j]){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...g,["ratio"+j]:t/i,["value"+j]:"original"}}}else{if(e.widthHeightWidget={...U,["width"+j]:""},!g["value"+j]){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...g,["ratio"+j]:t/i,["value"+j]:"original"}}w||(e.widthHeightWidget={...e.widthHeightWidget,["height"+j]:""})}i(e)},placeholder:"Auto",isInline:!1,disableDynamicContent:!0,isResponsive:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Height","ablocks"),attributeName:"height",attributeValue:U["showHeight"+j]?U["height"+j]:"",placeholder:"Auto",
@@ -2445,57 +2445,57 @@
2445 2445 I.jsx)(I.Fragment,{children:e}),"style"===l.name&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(iv,{atomic:t,alignValue:o}),(0,I.jsx)(av,{atomic:t}),(0,I.jsx)(nv,{atomic:t}),(0,I.jsx)(Ok,{atomic:t,defaultDisplay:a}),i,(0,I.jsx)(Zk,{atomic:t}),(0,I.jsx)(Kk,{atomic:t})]}),"advanced"===l.name&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ov,{atomic:t}),(0,I.jsx)(Qk,{atomic:t})]})]})})})})}function rv({atomic:t,attributes:e,blockClass:i,alignValue:o=""}){const{library:a,activeDevice:l,activeState:n,currentStyles:s,animations:r,RESPONSIVE_DEVICES:b}=t,{block_id:c,styles:d={},globalClasses:u=[],customCSS:p=""}=e,m=Q(J(l)),h=t=>gH(t,m,"").borderStyle||"",g=(t,e,i="")=>bH.map(({key:o})=>{const a=gH(e,m,o),l=hM(a,""===o?i:"",""===o?"":h(e)),n=gM(a,`${t}${o}`)+fM(a,`${t}${o}`);return(l?`${t}${o}{${l}}`:"")+n}).join("");let f="";if(u.length){const t=new Set(u);let e=t.size;for(const i of a)if(t.has(i.id)&&(f+=i.styles?g(`.ablocks-gc-${i.id}`,i.styles):i.css?`.ablocks-gc-${i.id}{${i.css}}`:"",e-=1,
2446 2446 0===e))break}const y=`.ablocks-block-${c}.${i}`;if(f+=g(y,d,o),""!==n){const t=gH(s,m,n),e=hM(t,"",h(s));e&&(f+=`${y}{${e}}`),f+=gM(t,y),f+=fM(t,y)}return f+=((t,e,i)=>{if(!Array.isArray(e)||!e.length)return"";let o="";const a={};e.forEach(t=>{const e=SM(t);a[e]||(a[e]=!0,o+=(t=>{const e=t.effect||"fade",i="out"===t.type?"out":"in";let o=t.direction||"";"slide"!==e||o||(o="top");const a=((t,e)=>{const i=-e,o=e;switch(t){case"top":return`translateY(${i}px)`;case"bottom":return`translateY(${o}px)`;case"left":return`translateX(${i}px)`;case"right":return`translateX(${o}px)`;case"top-left":return`translate(${i}px, ${i}px)`;case"top-right":return`translate(${o}px, ${i}px)`;case"bottom-left":return`translate(${i}px, ${o}px)`;case"bottom-right":return`translate(${o}px, ${o}px)`;default:return""}})(o,"slide"===e?60:24),l=[a,"scale"===e?"scale(0.85)":""].filter(Boolean).join(" ")||"none",n=SM(t)
2447 2447 ;return"out"===i?`@keyframes ${n}{from{opacity:1;transform:none;}to{opacity:0;transform:${l};}}`:`@keyframes ${n}{from{opacity:0;transform:${l};}to{opacity:1;transform:none;}}`})(t))});const l=e.some(t=>"scrollIn"===t.trigger&&"out"!==(t.type||"in"));l&&(o+=`${t}.ablocks-anim-scroll.ablocks-anim-ready:not(.ablocks-in-view){opacity:0;}`),["load","scrollIn","hover","click"].forEach(a=>{const l=e.filter(t=>(t.trigger||"load")===a);if(!l.length)return;const n=t+(t=>{switch(t){case"hover":return":hover";case"scrollIn":return".ablocks-in-view";case"click":return".ablocks-anim-active";default:return""}})(a),s=t=>l.filter(e=>PM(e,t)).map(WM).join(", "),r=s("Desktop");r&&(o+=`${n}{animation:${r};}`),(i||[]).forEach(t=>{if("Desktop"===t.id||!t.max&&!t.min)return;const e=s(t.id);if(e!==r){const i=jM(t.min||0,t.max||0);i&&(o+=`@media screen and ${i}{${n}{animation:${e||"none"};}}`)}})});const n=e.filter(t=>"scrollOn"===t.trigger);if(n.length){
2448 2448 const e=t=>`${SM(t)} 1000ms linear 0ms 1 both`,a=t=>n.filter(e=>PM(e,t)).map(e).join(", "),l=a("Desktop");l&&(o+=`${t}{animation:${l};}`),(i||[]).forEach(e=>{if("Desktop"===e.id||!e.max&&!e.min)return;const i=a(e.id);if(i!==l){const a=jM(e.min||0,e.max||0);a&&(o+=`@media screen and ${a}{${t}{animation:${i||"none"};}}`)}})}return o})(y,r,b),p&&p.trim()&&(f+=p.replace(/selector/g,y)),f}const bv="core/block-editor";function cv(){return document.body.classList.contains("modal-open")}function dv({clientId:t,name:e,isSelected:i,isContainer:o=!1}){const[l,n]=(0,a.useState)(null),[s,r]=(0,a.useState)(!1),[b,c]=(0,a.useState)(!1),d=(0,a.useRef)(),u=(0,a.useRef)(),p=(0,a.useMemo)(()=>({show:()=>{clearTimeout(d.current),r(!0)},hide:()=>{clearTimeout(d.current),d.current=setTimeout(()=>r(!1),150)},hideImmediately:()=>{clearTimeout(d.current),r(!1)}}),[]);return(0,a.useEffect)(()=>()=>clearTimeout(d.current),[]),(0,a.useEffect)(()=>{const t=l?.ownerDocument;if(!t)return;const e=()=>{
2449 -p.hideImmediately(),c(!0),clearTimeout(u.current),u.current=setTimeout(()=>{requestAnimationFrame(()=>requestAnimationFrame(()=>c(!1)))},150)};return t.addEventListener("scroll",e,!0),()=>{t.removeEventListener("scroll",e,!0),clearTimeout(u.current)}},[l,p]),{blockProps:(0,a.useMemo)(()=>({ref:n,onMouseOver:()=>p.show(),onMouseOut:()=>p.hide()}),[p]),quickActions:{clientId:t,name:e,anchor:l,isContainer:o,isVisible:!!l&&(s||!!i),isScrolling:b,onShow:p.show,onHide:p.hide}}}function uv(t){return t.isVisible&&t.anchor?(0,I.jsx)(pv,{...t}):null}function pv({clientId:t,name:e,anchor:i,isContainer:n,isScrolling:b,onShow:c,onHide:d}){const u=function(){const[t,e]=(0,a.useState)(cv);return(0,a.useEffect)(()=>{const t=()=>e(cv());t();const i=new window.MutationObserver(t);return i.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},[]),t}(),[p,m]=(0,a.useState)(!1),[h,g]=(0,a.useState)();(0,a.useEffect)(()=>{if(!i)return
2450 -;const t=i.ownerDocument,e=t.defaultView,o=e?.frameElement,a=()=>{const t=i.getBoundingClientRect();let e={top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},a=0,l=0;if(o){const t=o.getBoundingClientRect();e={top:t.top,left:t.left,right:t.right,bottom:t.bottom},a=t.top,l=t.left}else{const t=document.querySelector(".edit-post-header")||document.querySelector(".editor-header")||document.querySelector("#wpadminbar");e.top=t?t.getBoundingClientRect().bottom:60}const n=t.top+a,s=t.bottom+a,r=t.left+l,b=t.right+l,c=t=>Math.round(Math.max(t,-50)),d=`inset( ${c(e.top-n)}px ${c(b-e.right)}px ${c(s-e.bottom)}px ${c(e.left-r)}px )`;g(t=>t===d?t:d),m(n-30<e.top)};return a(),t.addEventListener("scroll",a,!0),e.addEventListener("resize",a),window.addEventListener("resize",a),()=>{t.removeEventListener("scroll",a,!0),e.removeEventListener("resize",a),window.removeEventListener("resize",a)}},[i]);const{rootClientId:f,index:y}=(0,r.useSelect)(e=>({
2451 -rootClientId:e(bv).getBlockRootClientId(t),index:e(bv).getBlockIndex(t)}),[t]),{insertBlock:T,removeBlock:H,selectBlock:M,startDraggingBlocks:x,stopDraggingBlocks:k}=(0,r.useDispatch)(bv),v=!f,_=v||n,R=_?"drag":"edit-two";if(u)return null;const S=(0,I.jsx)("button",{type:"button",className:`ablocks-editor-block-control-button ablocks-editor-block-control-button--${R}`,"aria-label":_?(0,L.__)("Drag block","ablocks"):(0,L.__)("Select block","ablocks"),onClick:()=>M(t),children:(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${R}`})});return(0,I.jsx)(N.Popover,{anchor:i,placement:"overlay",variant:"unstyled",className:"ablocks-atomic-qa",animate:!1,focusOnMount:!1,flip:!1,resize:!1,style:{clipPath:h,...b&&{visibility:"hidden"}},children:(0,I.jsx)("div",{className:"ablocks-atomic-qa__host",children:(0,I.jsx)("div",{className:s()("ablocks-editor-block-control-wrap",{"ablocks-editor-block-control-wrap--root-block":v,"ablocks-editor-block-control-wrap--container-block":n,
2452 -"ablocks-editor-block-control-wrap--overflow-not-visible":p}),children:(0,I.jsxs)("div",{className:"ablocks-editor-block-control-wrap__buttons",onMouseOver:c,onMouseOut:d,onFocus:c,onBlur:d,onWheel:t=>{const e=i?.ownerDocument;if(!e||t.ctrlKey)return;const o=e.defaultView;let a=1;1===t.deltaMode?a=16:2===t.deltaMode&&(a=o.innerHeight);let l=i.parentElement;for(;l&&l!==e.body;){const{overflowY:t}=o.getComputedStyle(l);if(/auto|scroll|overlay/.test(t)&&l.scrollHeight>l.clientHeight)break;l=l.parentElement}l&&l!==e.body||(l=e.scrollingElement),l?.scrollBy({left:t.deltaX*a,top:t.deltaY*a})},children:[(0,I.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--add","aria-label":(0,L.__)("Add block above","ablocks"),onClick:()=>T((0,o.createBlock)(e),y,f,!0),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--add"})}),_?(0,I.jsx)(N.Draggable,{appendToOwnerDocument:!0,__experimentalTransferDataType:"wp-blocks",
2453 -__experimentalDragComponent:(0,I.jsxs)("div",{className:"ablocks-atomic-qa__drag-chip",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--drag"}),(0,o.getBlockType)(e)?.title||""]}),transferData:{type:"block",srcClientIds:[t],srcRootClientId:f},onDragStart:()=>x([t]),onDragEnd:()=>k(),children:({onDraggableStart:t,onDraggableEnd:e})=>l().cloneElement(S,{draggable:!0,onDragStart:t,onDragEnd:e})}):S,(0,I.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--delete","aria-label":(0,L.__)("Delete block","ablocks"),onClick:()=>H(t),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete-two"})})]})})})})}const mv=()=>{},hv=[{label:(0,L.__)("Paragraph (p)","ablocks"),value:"p"},{label:(0,L.__)("Heading 1 (h1)","ablocks"),value:"h1"},{label:(0,L.__)("Heading 2 (h2)","ablocks"),value:"h2"},{label:(0,L.__)("Heading 3 (h3)","ablocks"),value:"h3"},{label:(0,L.__)("Heading 4 (h4)","ablocks"),value:"h4"},{
2454 -label:(0,L.__)("Heading 5 (h5)","ablocks"),value:"h5"},{label:(0,L.__)("Heading 6 (h6)","ablocks"),value:"h6"},{label:"Span",value:"span"},{label:"Div",value:"div"}];function gv({attributes:t,setAttributes:e}){const{tag:i,htmlId:o}=t;return(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML tag","ablocks"),attributeValue:i,setAttributes:mv,onChangeHandler:t=>e({tag:t}),options:hv}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:o||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]})}const fv=(t,e={})=>{const i=((t,e={})=>{const i=[],o=Z(),a=pH(t);return o.forEach((l,n)=>{const s=(t=>{const{min:e,max:i}=K(t);if(e<1&&i<1)return"";const o=[];return e>0&&o.push(`(min-width:${e}px)`),i>0&&o.push(`(max-width:${i}px)`),o.length?`@media screen and ${o.join(" and ")}`:""})(l),r=dH(l),b=((t,e)=>{const i=t.slice(0,e+1).map(t=>t.id);return Q(J(t[e])).filter(t=>i.includes(t.id))})(o,n);bH.forEach(({key:o})=>{
2455 -let n=[];if(a){const e=mH(t,r,o);if(Object.keys(e).length){const i=MH(t,r,o,"borderStyle",b)||"";n=((t,e)=>{if(e)return t;const i=e=>t.some(([t,i])=>t===e&&""!==i);return i("background-color")&&!i("background-image")?[...t,["background-image","unset"]]:t})(pM(e,"",i),""===o&&""===r)}}if(""===o){const t=((t,e)=>t&&"object"==typeof t&&t["value"+e]||"")(e,l.suffix||"");t&&(n=[...n,["text-align",t]])}const c=mM(n).filter(([,t])=>""!==t&&null!=t).map(([t,e])=>[String(t),String(e)]);c.length&&i.push([s,o,c])})}),i})(t,e);return i.length?"ablocks-s-"+(t=>{const e=JSON.stringify(t);let i=2166136261;for(let t=0;t<e.length;t++)i^=e.charCodeAt(t),i=Math.imul(i,16777619)>>>0;return i.toString(16).padStart(8,"0")})(i):""},yv={UU:"ablocks/atomic-text",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},tag:{type:"string",default:"p"},content:{type:"string",source:"html",selector:".ablocks-atomic-text",default:""},globalClasses:{type:"array",default:[]},
2456 -htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}};(0,M.xV)(yv.UU)&&(0,o.registerBlockType)(yv.UU,{title:(0,L.__)("Atomic Text","ablocks"),attributes:yv.uK,category:yv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-paragraph"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:a}){const l=ox({attributes:t,setAttributes:e,clientId:i}),{blockProps:n,quickActions:r}=dv({clientId:i,name:o,isSelected:a}),{block_id:b,tag:c,content:d,alignment:u,globalClasses:p=[]}=t,m=c||"p",h="ablocks-atomic-text",g=rv({atomic:l,attributes:t,blockClass:h,
2457 -alignValue:u?.value}),f=(0,D.useBlockProps)({...n,className:s()(`ablocks-block-${b}`,h,"ablocks-in-view","ablocks-anim-active",...p.map(t=>`ablocks-gc-${t}`))});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(D.AlignmentControl,{value:u?.value,onChange:t=>e({alignment:{...u,value:t||""}})})}),(0,I.jsx)(sv,{atomic:l,alignValue:u?.value,defaultDisplay:"block",general:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(gv,{attributes:t,setAttributes:e}),(0,I.jsx)(Pk,{attributes:t,setAttributes:e})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wk,{atomic:l,open:!0}),(0,I.jsx)(Sk,{atomic:l}),(0,I.jsx)(Uk,{atomic:l}),(0,I.jsx)(jk,{atomic:l}),(0,I.jsx)(wk,{atomic:l})]})}),(0,I.jsx)("style",{children:g}),(0,I.jsx)(uv,{...r}),(0,I.jsx)(D.RichText,{...f,tagName:m,value:d,onChange:t=>e({content:t}),placeholder:(0,L.__)("Type text…","ablocks"),allowedFormats:["core/bold","core/italic","core/link","core/underline","core/text-color"]})]})},
2458 -save:function({attributes:t}){const{block_id:e,tag:i,content:o,globalClasses:a=[],htmlId:l,link:n={},animations:r=[],styles:b={},alignment:c={}}=t,d=i||"p",u=wM(r),p=fv(b,c),m=D.useBlockProps.save({className:s()(`ablocks-block-${e}`,"ablocks-atomic-text",p||void 0,{"ablocks-anim-scroll":u.scroll},...a.map(t=>`ablocks-gc-${t}`)),id:l||void 0,"data-ablocks-scroll":u.scroll?"1":void 0,"data-ablocks-click":u.click?"1":void 0,"data-ablocks-scrollon":u.scrollOn?"1":void 0,"data-ablocks-scroll-start":u.scrollOn?String(u.scrollStart):void 0,"data-ablocks-scroll-end":u.scrollOn?String(u.scrollEnd):void 0}),h=(0,I.jsx)(D.RichText.Content,{...m,tagName:d,value:o});if(n?.url){const t=n.noFollow?"nofollow noopener noreferrer":n.newTab?"noopener noreferrer":void 0;return(0,I.jsx)("a",{href:n.url,target:n.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-text__link",children:h})}return h}});const Tv={UU:"ablocks/atomic-image",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},
2459 -blockVersion:{type:"number",default:3},src:{type:"string",source:"attribute",selector:"img",attribute:"src",default:""},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},imageId:{type:"number",default:0},sizeSlug:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Hv="ablocks-atomic-image",Mv=()=>{};(0,M.xV)(Tv.UU)&&(0,o.registerBlockType)(Tv.UU,{title:(0,L.__)("Atomic Image","ablocks"),attributes:Tv.uK,category:Tv.L1,icon:(0,I.jsx)("span",{
2460 -className:"ablocks-icon ablocks-icon--block-image"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:a}){const l=ox({attributes:t,setAttributes:e,clientId:i}),{blockProps:n,quickActions:b}=dv({clientId:i,name:o,isSelected:a}),{block_id:c,src:d,alt:u,imageId:p,sizeSlug:m="",globalClasses:h=[]}=t,g=rv({atomic:l,attributes:t,blockClass:Hv}),f=(0,r.useSelect)(t=>p?t(zl.store).getMedia(p):null,[p]),y=t=>{if(!t||!d)return!1;const e=[t.source_url,...Object.values(t.media_details?.sizes||{}).map(t=>t?.source_url)].filter(Boolean);return e.includes(d)},T=y(f)?f:null,H=f&&!y(f)?0:p,M=Vd(T?.media_details?.sizes),x=(t,e)=>{if(!e)return"";const i=t?.media_details?.sizes?.[e]||t?.sizes?.[e];return i?.source_url||i?.url||""},k=t=>{const i=x(t,m);e({src:i||t?.url||"",imageId:t?.id||0,alt:t?.alt||u||"",sizeSlug:i?m:""})},v=(0,D.useBlockProps)({...n,className:s()(`ablocks-block-${c}`,Hv,"ablocks-in-view","ablocks-anim-active",...h.map(t=>`ablocks-gc-${t}`))}),_=(0,
2461 -I.jsxs)(N.PanelBody,{title:(0,L.__)("Image","ablocks"),children:[(0,I.jsx)(wx,{url:d,id:H,onSelect:k,onRemove:()=>e({src:"",imageId:0,sizeSlug:""})}),M.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Resolution","ablocks"),attributeValue:m,setAttributes:Mv,onChangeHandler:t=>e({sizeSlug:t,src:x(T,t)||T?.source_url||d}),options:[{label:(0,L.__)("Full size","ablocks"),value:""},...M]}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("Alt text","ablocks"),value:u||"",onChange:t=>e({alt:t}),help:(0,L.__)("Leave empty when the image is decorative.","ablocks"),__nextHasNoMarginBottom:!0}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:t.htmlId||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]}),R=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jk,{atomic:l}),(0,I.jsx)(Uk,{atomic:l}),(0,I.jsx)(wk,{atomic:l})]});return(0,I.jsxs)(I.Fragment,{children:[d&&(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarGroup,{children:(0,I.jsx)(D.MediaUploadCheck,{children:(0,
2462 -I.jsx)(D.MediaUpload,{onSelect:k,allowedTypes:["image"],value:H,render:({open:t})=>(0,I.jsx)(N.ToolbarButton,{onClick:t,children:(0,L.__)("Replace","ablocks")})})})})}),(0,I.jsx)(sv,{atomic:l,general:(0,I.jsxs)(I.Fragment,{children:[_,(0,I.jsx)(Pk,{attributes:t,setAttributes:e})]}),style:R}),(0,I.jsx)("style",{children:g}),(0,I.jsx)(uv,{...b}),d?(0,I.jsx)("img",{...v,src:d,alt:u||""}):(0,I.jsx)("div",{...v,children:(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("Atomic Image","ablocks")},onSelect:k,allowedTypes:["image"],accept:"image/*"})})]})},save:function({attributes:t}){const{block_id:e,src:i,alt:o,link:a={},globalClasses:l=[],htmlId:n,animations:r=[],styles:b={},alignment:c={}}=t;if(!i)return null;const d=wM(r),u=fv(b,c),p=D.useBlockProps.save({className:s()(`ablocks-block-${e}`,"ablocks-atomic-image",u||void 0,{"ablocks-anim-scroll":d.scroll},...l.map(t=>`ablocks-gc-${t}`)),id:n||void 0,"data-ablocks-scroll":d.scroll?"1":void 0,
2463 -"data-ablocks-click":d.click?"1":void 0,"data-ablocks-scrollon":d.scrollOn?"1":void 0,"data-ablocks-scroll-start":d.scrollOn?String(d.scrollStart):void 0,"data-ablocks-scroll-end":d.scrollOn?String(d.scrollEnd):void 0}),m=(0,I.jsx)("img",{...p,src:i,alt:o||""});if(a?.url){const t=a.noFollow?"nofollow noopener noreferrer":a.newTab?"noopener noreferrer":void 0;return(0,I.jsx)("a",{href:a.url,target:a.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-image__link",children:m})}return m}});const xv={UU:"ablocks/atomic-svg",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},svgCode:{type:"string",default:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M12 2l2.9 6.3 6.9.6-5.2 4.5 1.6 6.7L12 17.3 5.8 20.6l1.6-6.7L2.2 8.9l6.9-.6L12 2z"/></svg>'},svgUrl:{type:"string",default:""},svgId:{type:"number",default:0},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},globalClasses:{type:"array",
2464 -default:[]},htmlId:{type:"string",default:""},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},kv="ablocks-atomic-svg",vv=t=>{if(!t)return"";const e=t.search(/<svg[\s>]/i),i=t.lastIndexOf("</svg>");return-1===e||-1===i?"":t.slice(e,i+6).replace(/<script[\s\S]*?<\/script>/gi,"").replace(/\son\w+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"").trim()};(0,M.xV)(xv.UU)&&(0,o.registerBlockType)(xv.UU,{title:(0,L.__)("Atomic SVG","ablocks"),attributes:xv.uK,category:xv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:l}){const n=ox({attributes:t,setAttributes:e,clientId:i
2465 -}),{blockProps:r,quickActions:b}=dv({clientId:i,name:o,isSelected:l}),{block_id:c,svgCode:d,svgUrl:u,svgId:p,globalClasses:m=[]}=t,[h,g]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),[T,H]=(0,a.useState)(""),M=(t=>t&&"object"==typeof t?void 0!==t.value&&""!==t.value:!!t)(n.resolved("width")),x=rv({atomic:n,attributes:t,blockClass:kv})+(n.resolved("justifyContent")&&!M?`.ablocks-block-${c}.${kv} svg{width:auto;max-width:100%;}`:"")+function(t,e,i,o){const a=(t=>t&&"object"==typeof t?void 0!==t.value&&""!==t.value:!!t)(t.resolved("maxWidth"));if(!o&&!a)return"";const l=t.resolved("margin");return l&&"object"==typeof l&&["common","left","right"].some(t=>void 0!==l[t]&&""!==l[t])?"":`.ablocks-block-${e}.${i}{margin-left:0;margin-right:0;}`}(n,c,kv,M),k=(0,D.useBlockProps)({...r,className:s()(`ablocks-block-${c}`,kv,"ablocks-in-view","ablocks-anim-active",...m.map(t=>`ablocks-gc-${t}`))}),v=(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("SVG","ablocks"),children:[(0,I.jsx)(wx,{url:u,id:p,
2466 -onSelect:async t=>{const i=t?.url||"";if(i){H(""),y(!0);try{const o=await window.fetch(i),a=vv(await o.text());a?e({svgCode:a,svgUrl:i,svgId:t?.id||0}):H((0,L.__)("That file did not contain an <svg> element.","ablocks"))}catch(t){H((0,L.__)("Could not read that file. Paste the SVG code instead.","ablocks"))}y(!1)}},onRemove:()=>e({svgCode:"",svgUrl:"",svgId:0}),allowedTypes:["image/svg+xml"],placeholder:(0,L.__)("Select or upload SVG","ablocks")}),f&&(0,I.jsx)(N.Spinner,{}),!!T&&(0,I.jsx)(N.Notice,{status:"warning",isDismissible:!1,children:T}),(0,I.jsx)(N.Button,{variant:"link",onClick:()=>g(!h),"aria-expanded":h,children:h?(0,L.__)("Hide SVG code","ablocks"):(0,L.__)("Edit SVG code","ablocks")}),h&&(0,I.jsx)(N.TextareaControl,{label:(0,L.__)("SVG code","ablocks"),value:d||"",onChange:t=>e({svgCode:vv(t)||t}),rows:8,help:(0,L.__)('Use fill="currentColor" so the colours below apply.',"ablocks"),__nextHasNoMarginBottom:!0}),(0,I.jsx)(N.TextControl,{label:(0,
2467 -L.__)("HTML anchor (ID)","ablocks"),value:t.htmlId||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]}),_=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(N.PanelBody,{title:Bk(n,(0,L.__)("Color","ablocks"),"color"),initialOpen:!0,children:[(0,I.jsx)(kk,{atomic:n,label:(0,L.__)("Current color","ablocks"),base:"textColor"}),(0,I.jsx)(kk,{atomic:n,label:(0,L.__)("Fill","ablocks"),base:"fill"}),(0,I.jsx)(kk,{atomic:n,label:(0,L.__)("Stroke","ablocks"),base:"stroke"}),(0,I.jsx)(gx,{atomic:n,label:(0,L.__)("Stroke width","ablocks"),prop:"strokeWidth"})]}),(0,I.jsx)(jk,{atomic:n}),(0,I.jsx)(wk,{atomic:n})]});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(sv,{atomic:n,general:(0,I.jsxs)(I.Fragment,{children:[v,(0,I.jsx)(Pk,{attributes:t,setAttributes:e})]}),style:_}),(0,I.jsx)("style",{children:x}),(0,I.jsx)(uv,{...b}),d?(0,I.jsx)("span",{...k,dangerouslySetInnerHTML:{__html:d}}):(0,I.jsx)("span",{...k,style:{padding:20,border:"1px dashed #ccc",color:"#888"},children:(0,
2468 -L.__)("Select or upload an SVG in the block settings →","ablocks")})]})},save:function({attributes:t}){const{block_id:e,svgCode:i,link:o={},globalClasses:a=[],htmlId:l,animations:n=[],styles:r={},alignment:b={}}=t;if(!i)return null;const c=wM(n),d=fv(r,b),u=D.useBlockProps.save({className:s()(`ablocks-block-${e}`,"ablocks-atomic-svg",d||void 0,{"ablocks-anim-scroll":c.scroll},...a.map(t=>`ablocks-gc-${t}`)),id:l||void 0,"data-ablocks-scroll":c.scroll?"1":void 0,"data-ablocks-click":c.click?"1":void 0,"data-ablocks-scrollon":c.scrollOn?"1":void 0,"data-ablocks-scroll-start":c.scrollOn?String(c.scrollStart):void 0,"data-ablocks-scroll-end":c.scrollOn?String(c.scrollEnd):void 0}),p=(0,I.jsx)("span",{...u,dangerouslySetInnerHTML:{__html:i}});if(o?.url){const t=o.noFollow?"nofollow noopener noreferrer":o.newTab?"noopener noreferrer":void 0;return(0,I.jsx)("a",{href:o.url,target:o.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-svg__link",children:p})}return p}});const _v={
2469 -UU:"ablocks/atomic-div",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{type:"string",default:"div"},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Rv=()=>{},Sv=["div","section","article","aside","header","footer","main","nav"].map(t=>({label:t,value:t}));function Wv({attributes:t,setAttributes:e}){const{htmlTag:i,htmlId:o}=t;return(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML tag","ablocks"),attributeValue:i||"div",
2470 -setAttributes:Rv,onChangeHandler:t=>e({htmlTag:t}),options:Sv}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:o||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]})}function Pv({clientId:t,attributes:e,setAttributes:i,layout:a,onBlank:l}){const{replaceInnerBlocks:n,removeBlock:s}=(0,r.useDispatch)("core/block-editor"),b="grid"===a,c=[{key:"row",label:(0,L.__)("Row","ablocks"),icon:"direction-row-horizontal",cfg:{direction:"row",children:1}},{key:"column",label:(0,L.__)("Column","ablocks"),icon:"direction-column-vertical",cfg:{direction:"column",children:1}},{key:"c2",label:(0,L.__)("2 columns","ablocks"),icon:"column-2",cfg:{direction:"row",children:2}},{key:"c3",label:(0,L.__)("3 columns","ablocks"),icon:"column-3",cfg:{direction:"row",children:3}},{key:"c4",label:(0,L.__)("4 columns","ablocks"),icon:"column-4",cfg:{direction:"row",children:4}}],d=[{key:"g2",label:(0,L.__)("2 columns","ablocks"),icon:"column-2",cfg:{cols:2,children:2}},{key:"g3",
2471 -label:(0,L.__)("3 columns","ablocks"),icon:"column-3",cfg:{cols:3,children:3}},{key:"g4",label:(0,L.__)("4 columns","ablocks"),icon:"column-4",cfg:{cols:4,children:4}},{key:"g6",label:(0,L.__)("6 columns","ablocks"),icon:"column-6",cfg:{cols:6,children:6}}],u=b?d:c;return(0,I.jsxs)("div",{className:"ablocks-layout-picker",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close ablocks-layout-picker__close",role:"presentation",title:(0,L.__)("Remove block","ablocks"),onClick:()=>s(t)}),(0,I.jsx)("h3",{className:"ablocks-layout-picker__title",children:b?(0,L.__)("Choose a grid to start","ablocks"):(0,L.__)("Choose a layout to start","ablocks")}),(0,I.jsx)("div",{className:"ablocks-layout-picker__grid",children:u.map(a=>(0,I.jsxs)("button",{type:"button",className:"ablocks-layout-picker__item",onClick:()=>(({cols:a,direction:l,children:s})=>{const r=b?{display:"grid",gridTemplateColumns:`repeat(${a}, minmax(0, 1fr))`,gap:{value:16,valueUnit:"px"}}:{display:"flex",
2472 -flexDirection:l||"row",gap:{value:16,valueUnit:"px"}};i({styles:hH(e.styles,"","",{...e.styles?.[""]||{},...r})}),s>0&&n(t,Array.from({length:s},()=>(0,o.createBlock)("ablocks/atomic-div")))})(a.cfg),children:[(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${a.icon}`}),(0,I.jsx)("span",{className:"ablocks-layout-picker__label",children:a.label})]},a.key))}),(0,I.jsx)(N.Button,{variant:"link",className:"ablocks-layout-picker__blank",onClick:l,children:(0,L.__)("Start blank","ablocks")})]})}function Uv({clientId:t,layout:e,cols:i}){const o="grid"===e,a=o?2*Math.max(i,1):0;return(0,I.jsxs)("div",{className:s()("ablocks-atomic-empty",{"ablocks-atomic-empty--grid":o}),children:[o&&(0,I.jsx)("div",{className:"ablocks-atomic-empty__cells",style:{gridTemplateColumns:`repeat(${Math.max(i,1)}, 1fr)`},children:Array.from({length:a}).map((t,e)=>(0,I.jsx)("span",{className:"ablocks-atomic-empty__cell"},e))}),(0,I.jsx)("div",{className:"ablocks-atomic-empty__plus",children:(0,
2473 -I.jsx)(D.ButtonBlockAppender,{rootClientId:t})})]})}const jv=t=>{const e=t?.[""]?.gridTemplateColumns||"",i=e.match(/repeat\(\s*(\d+)/);return i?parseInt(i[1],10):e.trim()?e.trim().split(/\s+/).length:3};function wv({blockClass:t,layout:e="none"}){return function({attributes:i,setAttributes:o,clientId:l,name:n,isSelected:b}){const c=ox({attributes:i,setAttributes:o,clientId:l}),{blockProps:d,quickActions:u}=dv({clientId:l,name:n,isSelected:b,isContainer:!0}),{block_id:p,htmlTag:m,globalClasses:h=[],alignment:g}=i,f=m||"div",y=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(l).length>0,[l]),[T,H]=(0,a.useState)(!1),M=!("flex"!==e&&"grid"!==e||y||T),x=rv({atomic:c,attributes:i,blockClass:t,alignValue:g?.value}),k=(0,D.useBlockProps)({...d,className:s()(`ablocks-block-${p}`,t,"ablocks-in-view","ablocks-anim-active",{"ablocks-atomic--empty":!y&&!M},...h.map(t=>`ablocks-gc-${t}`))}),v=(0,D.useInnerBlocksProps)(k,{templateLock:!1,renderAppender:y?void 0:()=>(0,I.jsx)(Uv,{clientId:l,
2474 -layout:e,cols:jv(i.styles)})});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(D.AlignmentControl,{value:g?.value,onChange:t=>o({alignment:{...g,value:t||""}})})}),(0,I.jsx)(sv,{atomic:c,alignValue:g?.value,defaultDisplay:"none"===e?"block":e,general:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wv,{attributes:i,setAttributes:o}),(0,I.jsx)(Pk,{attributes:i,setAttributes:o})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wk,{atomic:c}),(0,I.jsx)(Sk,{atomic:c}),(0,I.jsx)(Uk,{atomic:c}),(0,I.jsx)(jk,{atomic:c}),(0,I.jsx)(wk,{atomic:c})]})}),(0,I.jsx)("style",{children:x}),(0,I.jsx)(uv,{...u}),M?(0,I.jsx)(f,{...k,children:(0,I.jsx)(Pv,{clientId:l,attributes:i,setAttributes:o,layout:e,onBlank:()=>H(!0)})}):(0,I.jsx)(f,{...v})]})}}function zv({blockClass:t}){return function({attributes:e}){const{block_id:i,htmlTag:o,htmlId:a,link:l={},globalClasses:n=[],animations:r=[],styles:b={},alignment:c={}}=e,d=l?.url?"a":o||"div",u=wM(r),p=fv(b,c),m=[]
2475 -;l?.noFollow&&m.push("nofollow"),l?.newTab&&m.push("noopener","noreferrer");const h=m.length?m.join(" "):void 0,g=D.useBlockProps.save({className:s()(`ablocks-block-${i}`,t,p||void 0,{"ablocks-anim-scroll":u.scroll},...n.map(t=>`ablocks-gc-${t}`)),id:a||void 0,href:l?.url||void 0,target:l?.url&&l.newTab?"_blank":void 0,rel:l?.url?h:void 0,"data-ablocks-scroll":u.scroll?"1":void 0,"data-ablocks-click":u.click?"1":void 0,"data-ablocks-scrollon":u.scrollOn?"1":void 0,"data-ablocks-scroll-start":u.scrollOn?String(u.scrollStart):void 0,"data-ablocks-scroll-end":u.scrollOn?String(u.scrollEnd):void 0}),f=D.useInnerBlocksProps.save(g);return(0,I.jsx)(d,{...f})}}const Cv="ablocks-atomic-div";(0,M.xV)(_v.UU)&&(0,o.registerBlockType)(_v.UU,{title:(0,L.__)("Atomic Div","ablocks"),attributes:_v.uK,category:_v.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:wv({blockClass:Cv,layout:"none"}),save:zv({blockClass:Cv})});const Av={UU:"ablocks/atomic-flex",
2476 -L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{type:"string",default:"div"},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Lv="ablocks-atomic-flex";(0,M.xV)(Av.UU)&&(0,o.registerBlockType)(Av.UU,{title:(0,L.__)("Atomic Flex","ablocks"),attributes:Av.uK,category:Av.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:wv({blockClass:Lv,layout:"flex"}),save:zv({blockClass:Lv})});const Dv={UU:"ablocks/atomic-grid",L1:"ablocks-atomic",uK:{block_id:{
2477 -type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{type:"string",default:"div"},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Nv="ablocks-atomic-grid";(0,M.xV)(Dv.UU)&&(0,o.registerBlockType)(Dv.UU,{title:(0,L.__)("Atomic Grid","ablocks"),attributes:Dv.uK,category:Dv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:wv({blockClass:Nv,layout:"grid"}),save:zv({blockClass:Nv})});const Iv=t=>{const{note:e="",style:i}=t;return(0,I.jsx)("p",{style:i,className:"ablocks-control-note",
2478 -children:(0,L.__)(e,"ablocks")})};function Vv(t){const{attributes:e,setAttributes:i}=t,{heading:o,headingTag:a,alignment:n,typography:s,textShadow:r,textStroke:b,textColor:c,backgroundColor:d,noticeHeaderPadding:u,isDismissible:p,noticeClose:m}=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-notification-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Notification","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),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,
2479 -isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Notice Close","ablocks"),options:[{label:(0,L.__)("One Time","ablocks"),value:"oneTime"},{label:(0,L.__)("permanent","ablocks"),value:"permanent"}],isResponsive:!1,attributeValue:m,attributeName:"noticeClose",setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)('Choose "Permanent" to hide the notice permanently after dismissing. Choose "One Time" to hide it only for the current session.',"ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Is Dismissible","ablocks"),attributeValue:p,setAttributes:i,attributeName:"isDismissible"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"backgroundColor",attributeValue:d,
2480 -setAttributes:i}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"noticeHeaderPadding",attributeValue:u,setAttributes:i})]})})}),p&&(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)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}Vv.propTypes={},Vv.defaultProps={};const Ov={UU:"ablocks/notice",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},heading:{type:"string",source:"html",selector:".ablocks-notice-title",default:"Add Your Heading Text Here"},
2481 -headingTag:{type:"string",default:"h1"},textColor:{type:"string",default:""},backgroundColor:{type:"string",default:"#EFEFF0"},isDismissible:{type:"boolean",default:!0},noticeClose:{type:"string",default:"oneTime"},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:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",
2482 -blur:"",horizontal:"",vertical:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},noticeHeaderPadding:{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:""}},iconSvgPath:{type:"string",
2483 -default:"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",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-window-close"},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",
2484 -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",
2485 -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},_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:"",
2486 -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:"",rightWidthMobile:"",
2487 -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,commonRadiusH:"",
2488 -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:"",imgPositionTablet:"",
2489 -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",imgYPositionUnitHTablet:"",
2490 -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:"",
2491 -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",
2492 -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",
2493 -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:{
2494 -type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Yv(t){const{attributes:e,setAttributes:i}=t,{block_id:o,headingTag:n,isDismissible:s}=e,[r,b]=(0,a.useState)(!0);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:Ov.UU,attributes:{...e,className:"ablocks-prevent-select-notice"},children:r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-notice-header",children:[(0,I.jsx)($c,{tagName:n,value:e.heading,withoutInteractiveFormatting:!0,className:"ablocks-notice-title",onChange:t=>i({heading:t}),placeholder:(0,L.__)("Notice Title","ablocks")}),s&&(0,I.jsx)(Fd,{onClick:()=>{b(!1)},attributes:e})]}),(0,I.jsx)("div",{className:"ablocks-notice-content",children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/paragraph",{paragraph:"Stay up-to-date with our latest updates and offers. Don’t miss out on important announcements!"}]],templateLock:!1})})]})})})}Yv.propTypes={};const Xv=(t,e="")=>({background:(0,
2495 -Hs.qD)(t?.backgroundColor),...(0,c.qD)(t?.noticeHeaderPadding,"padding",e)}),Bv=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,Zt.qD)(t?.alignment,"justify-content",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)}};function Ev(t){const{attributes:e}=t,{block_id:i,headingTag:o,heading:a,isDismissible:l,noticeClose:n}=e;return(0,I.jsxs)(sc,{blockId:i,name:Ov.UU,attributes:e,children:[(0,I.jsxs)("div",{"data-notice-close":n,className:"ablocks-notice-header",children:[(0,I.jsx)(D.RichText.Content,{tagName:o,value:a,className:"ablocks-notice-title"}),l&&(0,I.jsx)(Fd,{attributes:e})]}),(0,I.jsx)("div",{className:"ablocks-notice-content",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})}Ev.propTypes={},Ev.defaultProps={};const Fv={UU:"ablocks/notice",uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-notice-title",
2496 -default:"Add Your Heading Text Here"},headingTag:{type:"string",default:"h5"},textColor:{type:"string",default:""},backgroundColor:{type:"string",default:"#EFEFF0"},isDismissible:{type:"boolean",default:!0},noticeClose:{type:"string",default:"oneTime"},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:"",
2497 -horizontal:"",vertical:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},noticeHeaderPadding:{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:""}},iconSvgPath:{type:"string",
2449 +p.hideImmediately(),c(!0),clearTimeout(u.current),u.current=setTimeout(()=>{requestAnimationFrame(()=>requestAnimationFrame(()=>c(!1)))},150)};return t.addEventListener("scroll",e,!0),()=>{t.removeEventListener("scroll",e,!0),clearTimeout(u.current)}},[l,p]),{blockProps:(0,a.useMemo)(()=>({ref:n,onMouseOver:()=>p.show(),onMouseOut:()=>p.hide()}),[p]),quickActions:{clientId:t,name:e,anchor:l,isContainer:o,isVisible:!!l&&(s||!!i),isScrolling:b,onShow:p.show,onHide:p.hide}}}function uv(t){return t.isVisible&&t.anchor?(0,I.jsx)(pv,{...t}):null}function pv({clientId:t,name:e,anchor:i,isContainer:n,isScrolling:b,onShow:c,onHide:d}){const u=function(){const[t,e]=(0,a.useState)(cv);return(0,a.useEffect)(()=>{const t=()=>e(cv());t();const i=new window.MutationObserver(t);return i.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},[]),t}(),[p,m]=(0,a.useState)();(0,a.useEffect)(()=>{if(!i)return;const t=i.ownerDocument,e=t.defaultView,o=e?.frameElement,a=()=>{
2450 +const t=i.getBoundingClientRect();let e={top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},a=0,l=0;if(o){const t=o.getBoundingClientRect();e={top:t.top,left:t.left,right:t.right,bottom:t.bottom},a=t.top,l=t.left}else{const t=document.querySelector(".edit-post-header")||document.querySelector(".editor-header")||document.querySelector("#wpadminbar");e.top=t?t.getBoundingClientRect().bottom:60}const n=t.top+a,s=t.bottom+a,r=t.left+l,b=t.right+l,c=t=>Math.round(Math.max(t,-50)),d=`inset( ${c(e.top-n)}px ${c(b-e.right)}px ${c(s-e.bottom)}px ${c(e.left-r)}px )`;m(t=>t===d?t:d)};return a(),t.addEventListener("scroll",a,!0),e.addEventListener("resize",a),window.addEventListener("resize",a),()=>{t.removeEventListener("scroll",a,!0),e.removeEventListener("resize",a),window.removeEventListener("resize",a)}},[i]);const{rootClientId:h,index:g}=(0,r.useSelect)(e=>({rootClientId:e(bv).getBlockRootClientId(t),index:e(bv).getBlockIndex(t)
2451 +}),[t]),{insertBlock:f,removeBlock:y,selectBlock:T,startDraggingBlocks:H,stopDraggingBlocks:M}=(0,r.useDispatch)(bv),x=!h,k=x||n,v=k?"drag":"edit-two";if(u)return null;const _=(0,I.jsx)("button",{type:"button",className:`ablocks-editor-block-control-button ablocks-editor-block-control-button--${v}`,"aria-label":k?(0,L.__)("Drag block","ablocks"):(0,L.__)("Select block","ablocks"),onClick:()=>T(t),children:(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${v}`})});return(0,I.jsx)(N.Popover,{anchor:i,placement:"overlay",variant:"unstyled",className:"ablocks-atomic-qa",animate:!1,focusOnMount:!1,flip:!1,resize:!1,style:{clipPath:p,...b&&{visibility:"hidden"}},children:(0,I.jsx)("div",{className:"ablocks-atomic-qa__host",children:(0,I.jsx)("div",{className:s()("ablocks-editor-block-control-wrap",{"ablocks-editor-block-control-wrap--root-block":x,"ablocks-editor-block-control-wrap--container-block":n}),children:(0,I.jsxs)("div",{className:"ablocks-editor-block-control-wrap__buttons",
2452 +onMouseOver:c,onMouseOut:d,onFocus:c,onBlur:d,onWheel:t=>{const e=i?.ownerDocument;if(!e||t.ctrlKey)return;const o=e.defaultView;let a=1;1===t.deltaMode?a=16:2===t.deltaMode&&(a=o.innerHeight);let l=i.parentElement;for(;l&&l!==e.body;){const{overflowY:t}=o.getComputedStyle(l);if(/auto|scroll|overlay/.test(t)&&l.scrollHeight>l.clientHeight)break;l=l.parentElement}l&&l!==e.body||(l=e.scrollingElement),l?.scrollBy({left:t.deltaX*a,top:t.deltaY*a})},children:[(0,I.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--add","aria-label":(0,L.__)("Add block above","ablocks"),onClick:()=>f((0,o.createBlock)(e),g,h,!0),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--add"})}),k?(0,I.jsx)(N.Draggable,{appendToOwnerDocument:!0,__experimentalTransferDataType:"wp-blocks",__experimentalDragComponent:(0,I.jsxs)("div",{className:"ablocks-atomic-qa__drag-chip",children:[(0,I.jsx)("span",{
2453 +className:"ablocks-icon ablocks-icon--drag"}),(0,o.getBlockType)(e)?.title||""]}),transferData:{type:"block",srcClientIds:[t],srcRootClientId:h},onDragStart:()=>H([t]),onDragEnd:()=>M(),children:({onDraggableStart:t,onDraggableEnd:e})=>l().cloneElement(_,{draggable:!0,onDragStart:t,onDragEnd:e})}):_,(0,I.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--delete","aria-label":(0,L.__)("Delete block","ablocks"),onClick:()=>y(t),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete-two"})})]})})})})}const mv=()=>{},hv=[{label:(0,L.__)("Paragraph (p)","ablocks"),value:"p"},{label:(0,L.__)("Heading 1 (h1)","ablocks"),value:"h1"},{label:(0,L.__)("Heading 2 (h2)","ablocks"),value:"h2"},{label:(0,L.__)("Heading 3 (h3)","ablocks"),value:"h3"},{label:(0,L.__)("Heading 4 (h4)","ablocks"),value:"h4"},{label:(0,L.__)("Heading 5 (h5)","ablocks"),value:"h5"},{label:(0,L.__)("Heading 6 (h6)","ablocks"),value:"h6"},{
2454 +label:"Span",value:"span"},{label:"Div",value:"div"}];function gv({attributes:t,setAttributes:e}){const{tag:i,htmlId:o}=t;return(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML tag","ablocks"),attributeValue:i,setAttributes:mv,onChangeHandler:t=>e({tag:t}),options:hv}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:o||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]})}const fv=(t,e={})=>{const i=((t,e={})=>{const i=[],o=Z(),a=pH(t);return o.forEach((l,n)=>{const s=(t=>{const{min:e,max:i}=K(t);if(e<1&&i<1)return"";const o=[];return e>0&&o.push(`(min-width:${e}px)`),i>0&&o.push(`(max-width:${i}px)`),o.length?`@media screen and ${o.join(" and ")}`:""})(l),r=dH(l),b=((t,e)=>{const i=t.slice(0,e+1).map(t=>t.id);return Q(J(t[e])).filter(t=>i.includes(t.id))})(o,n);bH.forEach(({key:o})=>{let n=[];if(a){const e=mH(t,r,o);if(Object.keys(e).length){const i=MH(t,r,o,"borderStyle",b)||"";n=((t,e)=>{
2455 +if(e)return t;const i=e=>t.some(([t,i])=>t===e&&""!==i);return i("background-color")&&!i("background-image")?[...t,["background-image","unset"]]:t})(pM(e,"",i),""===o&&""===r)}}if(""===o){const t=((t,e)=>t&&"object"==typeof t&&t["value"+e]||"")(e,l.suffix||"");t&&(n=[...n,["text-align",t]])}const c=mM(n).filter(([,t])=>""!==t&&null!=t).map(([t,e])=>[String(t),String(e)]);c.length&&i.push([s,o,c])})}),i})(t,e);return i.length?"ablocks-s-"+(t=>{const e=JSON.stringify(t);let i=2166136261;for(let t=0;t<e.length;t++)i^=e.charCodeAt(t),i=Math.imul(i,16777619)>>>0;return i.toString(16).padStart(8,"0")})(i):""},yv={UU:"ablocks/atomic-text",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},tag:{type:"string",default:"p"},content:{type:"string",source:"html",selector:".ablocks-atomic-text",default:""},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{
2456 +type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}};(0,M.xV)(yv.UU)&&(0,o.registerBlockType)(yv.UU,{title:(0,L.__)("Atomic Text","ablocks"),attributes:yv.uK,category:yv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-paragraph"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:a}){const{block_id:l,tag:n,content:r,alignment:b,styles:c,globalClasses:d=[]}=t,u=mH(c,"","").textAlign||"",p=ox({attributes:t,setAttributes:t=>{t?.styles&&b?.value&&(mH(t.styles,"","").textAlign||"")!==u?e({...t,alignment:{...b,value:""}}):e(t)},clientId:i}),{blockProps:m,quickActions:h}=dv({clientId:i,name:o,isSelected:a}),g=n||"p",f="ablocks-atomic-text",y=rv({
2457 +atomic:p,attributes:t,blockClass:f,alignValue:b?.value}),T=String(r??""),H=""!==T&&!/<(img|svg|iframe|video|audio)\b/i.test(T)&&""===T.replace(/<[^>]*>/g,"").replace(/&nbsp;|\u00a0/g," ").trim(),M=(0,D.useBlockProps)({...m,className:s()(`ablocks-block-${l}`,f,"ablocks-in-view","ablocks-anim-active",{"ablocks-atomic-text--blank":H},...d.map(t=>`ablocks-gc-${t}`)),"data-ablocks-placeholder":H?(0,L.__)("Type text…","ablocks"):void 0});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(D.AlignmentControl,{value:b?.value||u,onChange:t=>e({alignment:{...b,value:""},styles:HM(hH(c,"","",{...mH(c,"",""),textAlign:t||""}))})})}),(0,I.jsx)(sv,{atomic:p,alignValue:b?.value,defaultDisplay:"block",general:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(gv,{attributes:t,setAttributes:e}),(0,I.jsx)(Pk,{attributes:t,setAttributes:e})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wk,{atomic:p,open:!0}),(0,I.jsx)(Sk,{atomic:p}),(0,I.jsx)(Uk,{atomic:p}),(0,I.jsx)(jk,{
2458 +atomic:p}),(0,I.jsx)(wk,{atomic:p})]})}),(0,I.jsx)("style",{children:y}),(0,I.jsx)(uv,{...h}),(0,I.jsx)(D.RichText,{...M,tagName:g,value:r,onChange:t=>e({content:t}),placeholder:(0,L.__)("Type text…","ablocks"),allowedFormats:["core/bold","core/italic","core/link","core/underline","core/code","core/text-color"]})]})},save:function({attributes:t}){const{block_id:e,tag:i,content:o,globalClasses:a=[],htmlId:l,link:n={},animations:r=[],styles:b={},alignment:c={}}=t,d=i||"p",u=wM(r),p=fv(b,c),m=D.useBlockProps.save({className:s()(`ablocks-block-${e}`,"ablocks-atomic-text",p||void 0,{"ablocks-anim-scroll":u.scroll},...a.map(t=>`ablocks-gc-${t}`)),id:l||void 0,"data-ablocks-scroll":u.scroll?"1":void 0,"data-ablocks-click":u.click?"1":void 0,"data-ablocks-scrollon":u.scrollOn?"1":void 0,"data-ablocks-scroll-start":u.scrollOn?String(u.scrollStart):void 0,"data-ablocks-scroll-end":u.scrollOn?String(u.scrollEnd):void 0}),h=(0,I.jsx)(D.RichText.Content,{...m,tagName:d,value:o});if(n?.url){
2459 +const t=n.noFollow?"nofollow noopener noreferrer":n.newTab?"noopener noreferrer":void 0;return(0,I.jsx)("a",{href:n.url,target:n.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-text__link",children:h})}return h}});const Tv={UU:"ablocks/atomic-image",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},src:{type:"string",source:"attribute",selector:"img",attribute:"src",default:""},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},imageId:{type:"number",default:0},sizeSlug:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{
2460 +type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Hv="ablocks-atomic-image",Mv=()=>{};(0,M.xV)(Tv.UU)&&(0,o.registerBlockType)(Tv.UU,{title:(0,L.__)("Atomic Image","ablocks"),attributes:Tv.uK,category:Tv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-image"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:a}){const l=ox({attributes:t,setAttributes:e,clientId:i}),{blockProps:n,quickActions:b}=dv({clientId:i,name:o,isSelected:a}),{block_id:c,src:d,alt:u,imageId:p,sizeSlug:m="",globalClasses:h=[]}=t,g=rv({atomic:l,attributes:t,blockClass:Hv}),f=(0,r.useSelect)(t=>p?t(zl.store).getMedia(p):null,[p]),y=t=>{if(!t||!d)return!1;const e=[t.source_url,...Object.values(t.media_details?.sizes||{}).map(t=>t?.source_url)].filter(Boolean);return e.includes(d)},T=y(f)?f:null,H=f&&!y(f)?0:p,M=Vd(T?.media_details?.sizes),x=(t,e)=>{if(!e)return"";const i=t?.media_details?.sizes?.[e]||t?.sizes?.[e]
2461 +;return i?.source_url||i?.url||""},k=t=>{const i=x(t,m);e({src:i||t?.url||"",imageId:t?.id||0,alt:t?.alt||u||"",sizeSlug:i?m:""})},v=(0,D.useBlockProps)({...n,className:s()(`ablocks-block-${c}`,Hv,"ablocks-in-view","ablocks-anim-active",...h.map(t=>`ablocks-gc-${t}`))}),_=(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Image","ablocks"),children:[(0,I.jsx)(wx,{url:d,id:H,onSelect:k,onRemove:()=>e({src:"",imageId:0,sizeSlug:""})}),M.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Resolution","ablocks"),attributeValue:m,setAttributes:Mv,onChangeHandler:t=>e({sizeSlug:t,src:x(T,t)||T?.source_url||d}),options:[{label:(0,L.__)("Full size","ablocks"),value:""},...M]}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("Alt text","ablocks"),value:u||"",onChange:t=>e({alt:t}),help:(0,L.__)("Leave empty when the image is decorative.","ablocks"),__nextHasNoMarginBottom:!0}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:t.htmlId||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]
2462 +}),R=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jk,{atomic:l}),(0,I.jsx)(Uk,{atomic:l}),(0,I.jsx)(wk,{atomic:l})]});return(0,I.jsxs)(I.Fragment,{children:[d&&(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarGroup,{children:(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:k,allowedTypes:["image"],value:H,render:({open:t})=>(0,I.jsx)(N.ToolbarButton,{onClick:t,children:(0,L.__)("Replace","ablocks")})})})})}),(0,I.jsx)(sv,{atomic:l,general:(0,I.jsxs)(I.Fragment,{children:[_,(0,I.jsx)(Pk,{attributes:t,setAttributes:e})]}),style:R}),(0,I.jsx)("style",{children:g}),(0,I.jsx)(uv,{...b}),d?(0,I.jsx)("img",{...v,src:d,alt:u||""}):(0,I.jsx)("div",{...v,children:(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("Atomic Image","ablocks")},onSelect:k,allowedTypes:["image"],accept:"image/*"})})]})},save:function({attributes:t}){const{block_id:e,src:i,alt:o,link:a={},globalClasses:l=[],htmlId:n,animations:r=[],styles:b={},alignment:c={}}=t
2463 +;if(!i)return null;const d=wM(r),u=fv(b,c),p=D.useBlockProps.save({className:s()(`ablocks-block-${e}`,"ablocks-atomic-image",u||void 0,{"ablocks-anim-scroll":d.scroll},...l.map(t=>`ablocks-gc-${t}`)),id:n||void 0,"data-ablocks-scroll":d.scroll?"1":void 0,"data-ablocks-click":d.click?"1":void 0,"data-ablocks-scrollon":d.scrollOn?"1":void 0,"data-ablocks-scroll-start":d.scrollOn?String(d.scrollStart):void 0,"data-ablocks-scroll-end":d.scrollOn?String(d.scrollEnd):void 0}),m=(0,I.jsx)("img",{...p,src:i,alt:o||""});if(a?.url){const t=a.noFollow?"nofollow noopener noreferrer":a.newTab?"noopener noreferrer":void 0;return(0,I.jsx)("a",{href:a.url,target:a.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-image__link",children:m})}return m}});const xv={UU:"ablocks/atomic-svg",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},svgCode:{type:"string",
2464 +default:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M12 2l2.9 6.3 6.9.6-5.2 4.5 1.6 6.7L12 17.3 5.8 20.6l1.6-6.7L2.2 8.9l6.9-.6L12 2z"/></svg>'},svgUrl:{type:"string",default:""},svgId:{type:"number",default:0},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},kv="ablocks-atomic-svg",vv=t=>{if(!t)return"";const e=t.search(/<svg[\s>]/i),i=t.lastIndexOf("</svg>")
2465 +;return-1===e||-1===i?"":t.slice(e,i+6).replace(/<script[\s\S]*?<\/script>/gi,"").replace(/\son\w+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"").trim()};(0,M.xV)(xv.UU)&&(0,o.registerBlockType)(xv.UU,{title:(0,L.__)("Atomic SVG","ablocks"),attributes:xv.uK,category:xv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:l}){const n=ox({attributes:t,setAttributes:e,clientId:i}),{blockProps:r,quickActions:b}=dv({clientId:i,name:o,isSelected:l}),{block_id:c,svgCode:d,svgUrl:u,svgId:p,globalClasses:m=[]}=t,[h,g]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),[T,H]=(0,a.useState)(""),M=(t=>t&&"object"==typeof t?void 0!==t.value&&""!==t.value:!!t)(n.resolved("width")),x=rv({atomic:n,attributes:t,blockClass:kv})+(n.resolved("justifyContent")&&!M?`.ablocks-block-${c}.${kv} svg{width:auto;max-width:100%;}`:"")+function(t,e,i,o){
2466 +const a=(t=>t&&"object"==typeof t?void 0!==t.value&&""!==t.value:!!t)(t.resolved("maxWidth"));if(!o&&!a)return"";const l=t.resolved("margin");return l&&"object"==typeof l&&["common","left","right"].some(t=>void 0!==l[t]&&""!==l[t])?"":`.ablocks-block-${e}.${i}{margin-left:0;margin-right:0;}`}(n,c,kv,M),k=(0,D.useBlockProps)({...r,className:s()(`ablocks-block-${c}`,kv,"ablocks-in-view","ablocks-anim-active",...m.map(t=>`ablocks-gc-${t}`))}),v=(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("SVG","ablocks"),children:[(0,I.jsx)(wx,{url:u,id:p,onSelect:async t=>{const i=t?.url||"";if(i){H(""),y(!0);try{const o=await window.fetch(i),a=vv(await o.text());a?e({svgCode:a,svgUrl:i,svgId:t?.id||0}):H((0,L.__)("That file did not contain an <svg> element.","ablocks"))}catch(t){H((0,L.__)("Could not read that file. Paste the SVG code instead.","ablocks"))}y(!1)}},onRemove:()=>e({svgCode:"",svgUrl:"",svgId:0}),allowedTypes:["image/svg+xml"],placeholder:(0,L.__)("Select or upload SVG","ablocks")}),f&&(0,
2467 +I.jsx)(N.Spinner,{}),!!T&&(0,I.jsx)(N.Notice,{status:"warning",isDismissible:!1,children:T}),(0,I.jsx)(N.Button,{variant:"link",onClick:()=>g(!h),"aria-expanded":h,children:h?(0,L.__)("Hide SVG code","ablocks"):(0,L.__)("Edit SVG code","ablocks")}),h&&(0,I.jsx)(N.TextareaControl,{label:(0,L.__)("SVG code","ablocks"),value:d||"",onChange:t=>e({svgCode:vv(t)||t}),rows:8,help:(0,L.__)('Use fill="currentColor" so the colours below apply.',"ablocks"),__nextHasNoMarginBottom:!0}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:t.htmlId||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]}),_=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(N.PanelBody,{title:Bk(n,(0,L.__)("Color","ablocks"),"color"),initialOpen:!0,children:[(0,I.jsx)(kk,{atomic:n,label:(0,L.__)("Current color","ablocks"),base:"textColor"}),(0,I.jsx)(kk,{atomic:n,label:(0,L.__)("Fill","ablocks"),base:"fill"}),(0,I.jsx)(kk,{atomic:n,label:(0,L.__)("Stroke","ablocks"),base:"stroke"}),(0,I.jsx)(gx,{
2468 +atomic:n,label:(0,L.__)("Stroke width","ablocks"),prop:"strokeWidth"})]}),(0,I.jsx)(jk,{atomic:n}),(0,I.jsx)(wk,{atomic:n})]});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(sv,{atomic:n,general:(0,I.jsxs)(I.Fragment,{children:[v,(0,I.jsx)(Pk,{attributes:t,setAttributes:e})]}),style:_}),(0,I.jsx)("style",{children:x}),(0,I.jsx)(uv,{...b}),d?(0,I.jsx)("span",{...k,dangerouslySetInnerHTML:{__html:d}}):(0,I.jsx)("span",{...k,style:{padding:20,border:"1px dashed #ccc",color:"#888"},children:(0,L.__)("Select or upload an SVG in the block settings →","ablocks")})]})},save:function({attributes:t}){const{block_id:e,svgCode:i,link:o={},globalClasses:a=[],htmlId:l,animations:n=[],styles:r={},alignment:b={}}=t;if(!i)return null;const c=wM(n),d=fv(r,b),u=D.useBlockProps.save({className:s()(`ablocks-block-${e}`,"ablocks-atomic-svg",d||void 0,{"ablocks-anim-scroll":c.scroll},...a.map(t=>`ablocks-gc-${t}`)),id:l||void 0,"data-ablocks-scroll":c.scroll?"1":void 0,
2469 +"data-ablocks-click":c.click?"1":void 0,"data-ablocks-scrollon":c.scrollOn?"1":void 0,"data-ablocks-scroll-start":c.scrollOn?String(c.scrollStart):void 0,"data-ablocks-scroll-end":c.scrollOn?String(c.scrollEnd):void 0}),p=(0,I.jsx)("span",{...u,dangerouslySetInnerHTML:{__html:i}});if(o?.url){const t=o.noFollow?"nofollow noopener noreferrer":o.newTab?"noopener noreferrer":void 0;return(0,I.jsx)("a",{href:o.url,target:o.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-svg__link",children:p})}return p}});const _v={UU:"ablocks/atomic-div",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{type:"string",default:"div"},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",
2470 +default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Rv=()=>{},Sv=["div","section","article","aside","header","footer","main","nav"].map(t=>({label:t,value:t}));function Wv({attributes:t,setAttributes:e}){const{htmlTag:i,htmlId:o}=t;return(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML tag","ablocks"),attributeValue:i||"div",setAttributes:Rv,onChangeHandler:t=>e({htmlTag:t}),options:Sv}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("HTML anchor (ID)","ablocks"),value:o||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]})}function Pv({clientId:t,attributes:e,setAttributes:i,layout:a,onBlank:l}){const{replaceInnerBlocks:n,removeBlock:s}=(0,r.useDispatch)("core/block-editor"),b="grid"===a,c=[{key:"row",label:(0,L.__)("Row","ablocks"),icon:"direction-row-horizontal",cfg:{direction:"row",
2471 +children:1}},{key:"column",label:(0,L.__)("Column","ablocks"),icon:"direction-column-vertical",cfg:{direction:"column",children:1}},{key:"c2",label:(0,L.__)("2 columns","ablocks"),icon:"column-2",cfg:{direction:"row",children:2}},{key:"c3",label:(0,L.__)("3 columns","ablocks"),icon:"column-3",cfg:{direction:"row",children:3}},{key:"c4",label:(0,L.__)("4 columns","ablocks"),icon:"column-4",cfg:{direction:"row",children:4}}],d=[{key:"g2",label:(0,L.__)("2 columns","ablocks"),icon:"column-2",cfg:{cols:2,children:2}},{key:"g3",label:(0,L.__)("3 columns","ablocks"),icon:"column-3",cfg:{cols:3,children:3}},{key:"g4",label:(0,L.__)("4 columns","ablocks"),icon:"column-4",cfg:{cols:4,children:4}},{key:"g6",label:(0,L.__)("6 columns","ablocks"),icon:"column-6",cfg:{cols:6,children:6}}],u=b?d:c;return(0,I.jsxs)("div",{className:"ablocks-layout-picker",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close ablocks-layout-picker__close",role:"presentation",title:(0,
2472 +L.__)("Remove block","ablocks"),onClick:()=>s(t)}),(0,I.jsx)("h3",{className:"ablocks-layout-picker__title",children:b?(0,L.__)("Choose a grid to start","ablocks"):(0,L.__)("Choose a layout to start","ablocks")}),(0,I.jsx)("div",{className:"ablocks-layout-picker__grid",children:u.map(a=>(0,I.jsxs)("button",{type:"button",className:"ablocks-layout-picker__item",onClick:()=>(({cols:a,direction:l,children:s})=>{const r=b?{display:"grid",gridTemplateColumns:`repeat(${a}, minmax(0, 1fr))`,gap:{value:16,valueUnit:"px"}}:{display:"flex",flexDirection:l||"row",gap:{value:16,valueUnit:"px"}};i({styles:hH(e.styles,"","",{...e.styles?.[""]||{},...r})}),s>0&&n(t,Array.from({length:s},()=>(0,o.createBlock)("ablocks/atomic-div")))})(a.cfg),children:[(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${a.icon}`}),(0,I.jsx)("span",{className:"ablocks-layout-picker__label",children:a.label})]},a.key))}),(0,I.jsx)(N.Button,{variant:"link",className:"ablocks-layout-picker__blank",onClick:l,
2473 +children:(0,L.__)("Start blank","ablocks")})]})}function Uv({clientId:t,layout:e,cols:i}){const o="grid"===e,a=o?2*Math.max(i,1):0;return(0,I.jsxs)("div",{className:s()("ablocks-atomic-empty",{"ablocks-atomic-empty--grid":o}),children:[o&&(0,I.jsx)("div",{className:"ablocks-atomic-empty__cells",style:{gridTemplateColumns:`repeat(${Math.max(i,1)}, 1fr)`},children:Array.from({length:a}).map((t,e)=>(0,I.jsx)("span",{className:"ablocks-atomic-empty__cell"},e))}),(0,I.jsx)("div",{className:"ablocks-atomic-empty__plus",children:(0,I.jsx)(D.ButtonBlockAppender,{rootClientId:t})})]})}const jv=t=>{const e=t?.[""]?.gridTemplateColumns||"",i=e.match(/repeat\(\s*(\d+)/);return i?parseInt(i[1],10):e.trim()?e.trim().split(/\s+/).length:3};function wv({blockClass:t,layout:e="none"}){return function({attributes:i,setAttributes:o,clientId:l,name:n,isSelected:b}){const c=ox({attributes:i,setAttributes:o,clientId:l}),{blockProps:d,quickActions:u}=dv({clientId:l,name:n,isSelected:b,isContainer:!0
2474 +}),{block_id:p,htmlTag:m,globalClasses:h=[],alignment:g}=i,f=m||"div",y=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(l).length>0,[l]),[T,H]=(0,a.useState)(!1),M=!("flex"!==e&&"grid"!==e||y||T),x=rv({atomic:c,attributes:i,blockClass:t,alignValue:g?.value}),k=(0,D.useBlockProps)({...d,className:s()(`ablocks-block-${p}`,t,"ablocks-in-view","ablocks-anim-active",{"ablocks-atomic--empty":!y&&!M},...h.map(t=>`ablocks-gc-${t}`))}),v=(0,D.useInnerBlocksProps)(k,{templateLock:!1,renderAppender:y?void 0:()=>(0,I.jsx)(Uv,{clientId:l,layout:e,cols:jv(i.styles)})});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(D.AlignmentControl,{value:g?.value,onChange:t=>o({alignment:{...g,value:t||""}})})}),(0,I.jsx)(sv,{atomic:c,alignValue:g?.value,defaultDisplay:"none"===e?"block":e,general:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wv,{attributes:i,setAttributes:o}),(0,I.jsx)(Pk,{attributes:i,setAttributes:o})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
2475 +I.jsx)(Wk,{atomic:c}),(0,I.jsx)(Sk,{atomic:c}),(0,I.jsx)(Uk,{atomic:c}),(0,I.jsx)(jk,{atomic:c}),(0,I.jsx)(wk,{atomic:c})]})}),(0,I.jsx)("style",{children:x}),(0,I.jsx)(uv,{...u}),M?(0,I.jsx)(f,{...k,children:(0,I.jsx)(Pv,{clientId:l,attributes:i,setAttributes:o,layout:e,onBlank:()=>H(!0)})}):(0,I.jsx)(f,{...v})]})}}function zv({blockClass:t}){return function({attributes:e}){const{block_id:i,htmlTag:o,htmlId:a,link:l={},globalClasses:n=[],animations:r=[],styles:b={},alignment:c={}}=e,d=l?.url?"a":o||"div",u=wM(r),p=fv(b,c),m=[];l?.noFollow&&m.push("nofollow"),l?.newTab&&m.push("noopener","noreferrer");const h=m.length?m.join(" "):void 0,g=D.useBlockProps.save({className:s()(`ablocks-block-${i}`,t,p||void 0,{"ablocks-anim-scroll":u.scroll},...n.map(t=>`ablocks-gc-${t}`)),id:a||void 0,href:l?.url||void 0,target:l?.url&&l.newTab?"_blank":void 0,rel:l?.url?h:void 0,"data-ablocks-scroll":u.scroll?"1":void 0,"data-ablocks-click":u.click?"1":void 0,
2476 +"data-ablocks-scrollon":u.scrollOn?"1":void 0,"data-ablocks-scroll-start":u.scrollOn?String(u.scrollStart):void 0,"data-ablocks-scroll-end":u.scrollOn?String(u.scrollEnd):void 0}),f=D.useInnerBlocksProps.save(g);return(0,I.jsx)(d,{...f})}}const Cv="ablocks-atomic-div";(0,M.xV)(_v.UU)&&(0,o.registerBlockType)(_v.UU,{title:(0,L.__)("Atomic Div","ablocks"),attributes:_v.uK,category:_v.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:wv({blockClass:Cv,layout:"none"}),save:zv({blockClass:Cv})});const Av={UU:"ablocks/atomic-flex",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{type:"string",default:"div"},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},
2477 +alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Lv="ablocks-atomic-flex";(0,M.xV)(Av.UU)&&(0,o.registerBlockType)(Av.UU,{title:(0,L.__)("Atomic Flex","ablocks"),attributes:Av.uK,category:Av.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:wv({blockClass:Lv,layout:"flex"}),save:zv({blockClass:Lv})});const Dv={UU:"ablocks/atomic-grid",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{type:"string",default:"div"},globalClasses:{type:"array",default:[]},htmlId:{type:"string",default:""},link:{type:"object",default:{url:"",newTab:!1,noFollow:!1}},animation:{type:"object",default:{type:"",duration:"0.6",delay:"0"}},animations:{type:"array",default:[]},transitionDuration:{type:"string",default:""},alignment:{type:"object",default:{
2478 +value:"",valueTablet:"",valueMobile:""}},styles:{type:"object",default:{v:3}},customCSS:{type:"string",default:""},hideOn:{type:"object",default:{desktop:!1,tablet:!1,mobile:!1}}}},Nv="ablocks-atomic-grid";(0,M.xV)(Dv.UU)&&(0,o.registerBlockType)(Dv.UU,{title:(0,L.__)("Atomic Grid","ablocks"),attributes:Dv.uK,category:Dv.L1,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:wv({blockClass:Nv,layout:"grid"}),save:zv({blockClass:Nv})});const Iv=t=>{const{note:e="",style:i}=t;return(0,I.jsx)("p",{style:i,className:"ablocks-control-note",children:(0,L.__)(e,"ablocks")})};function Vv(t){const{attributes:e,setAttributes:i}=t,{heading:o,headingTag:a,alignment:n,typography:s,textShadow:r,textStroke:b,textColor:c,backgroundColor:d,noticeHeaderPadding:u,isDismissible:p,noticeClose:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,
2479 +docs_url:"https://ablocks.pro/docs/ablocks-notification-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Notification","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),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}),(0,I.jsx)(Ut,{label:(0,L.__)("Notice Close","ablocks"),options:[{label:(0,L.__)("One Time","ablocks"),value:"oneTime"},{label:(0,L.__)("permanent","ablocks"),value:"permanent"}],isResponsive:!1,attributeValue:m,attributeName:"noticeClose",setAttributes:i}),(0,I.jsx)(Iv,{note:(0,
2480 +L.__)('Choose "Permanent" to hide the notice permanently after dismissing. Choose "One Time" to hide it only for the current session.',"ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Is Dismissible","ablocks"),attributeValue:p,setAttributes:i,attributeName:"isDismissible"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"backgroundColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,
2481 +I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"noticeHeaderPadding",attributeValue:u,setAttributes:i})]})})}),p&&(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)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}Vv.propTypes={},Vv.defaultProps={};const Ov={UU:"ablocks/notice",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},heading:{type:"string",source:"html",selector:".ablocks-notice-title",default:"Add Your Heading Text Here"},headingTag:{type:"string",default:"h1"},textColor:{type:"string",default:""},backgroundColor:{type:"string",default:"#EFEFF0"},isDismissible:{type:"boolean",default:!0},noticeClose:{type:"string",default:"oneTime"},alignment:{type:"object",default:{value:"left",valueTablet:"",
2482 +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:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",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:""}},noticeHeaderPadding:{type:"object",default:{isLinked:!0,
2483 +isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},iconSvgPath:{type:"string",default:"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",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"
2484 +},iconClass:{type:"string",default:"far fa-window-close"},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:"",
2485 +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,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},
2486 +iconImageWidth:{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:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",
2487 +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:"",
2488 +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"}
2489 +},_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:"",
2490 +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:{
2491 +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:"",
2492 +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:"",
2493 +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,
2494 +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 Yv(t){const{attributes:e,setAttributes:i}=t,{block_id:o,headingTag:n,isDismissible:s}=e,[r,b]=(0,a.useState)(!0);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:Ov.UU,attributes:{...e,className:"ablocks-prevent-select-notice"},children:r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-notice-header",children:[(0,I.jsx)($c,{tagName:n,value:e.heading,withoutInteractiveFormatting:!0,className:"ablocks-notice-title",onChange:t=>i({heading:t}),placeholder:(0,L.__)("Notice Title","ablocks")}),s&&(0,I.jsx)(Fd,{onClick:()=>{b(!1)},attributes:e})]}),(0,I.jsx)("div",{
2495 +className:"ablocks-notice-content",children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/paragraph",{paragraph:"Stay up-to-date with our latest updates and offers. Don’t miss out on important announcements!"}]],templateLock:!1})})]})})})}Yv.propTypes={};const Xv=(t,e="")=>({background:(0,Hs.qD)(t?.backgroundColor),...(0,c.qD)(t?.noticeHeaderPadding,"padding",e)}),Bv=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,Zt.qD)(t?.alignment,"justify-content",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)}};function Ev(t){const{attributes:e}=t,{block_id:i,headingTag:o,heading:a,isDismissible:l,noticeClose:n}=e;return(0,I.jsxs)(sc,{blockId:i,name:Ov.UU,attributes:e,children:[(0,I.jsxs)("div",{"data-notice-close":n,className:"ablocks-notice-header",children:[(0,I.jsx)(D.RichText.Content,{tagName:o,value:a,className:"ablocks-notice-title"}),l&&(0,I.jsx)(Fd,{attributes:e
2496 +})]}),(0,I.jsx)("div",{className:"ablocks-notice-content",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})}Ev.propTypes={},Ev.defaultProps={};const Fv={UU:"ablocks/notice",uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-notice-title",default:"Add Your Heading Text Here"},headingTag:{type:"string",default:"h5"},textColor:{type:"string",default:""},backgroundColor:{type:"string",default:"#EFEFF0"},isDismissible:{type:"boolean",default:!0},noticeClose:{type:"string",default:"oneTime"},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:"",
2497 +lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",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:""}},noticeHeaderPadding:{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:""}},iconSvgPath:{type:"string",
2498 2498 default:"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",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-window-close"},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",
2499 2499 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: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},_margin:{type:"object",default:{isLinked:!0,
2500 2500 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:"",
2501 2501 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:"",
@@ -3363,59 +3363,59 @@
3363 3363 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 3364 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 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 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})
3367 -},[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;return 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?"":("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`}),
3368 -t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap",Cj(o),Cj(o,"Tablet"),Cj(o,"Mobile"),customStyles(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"),customStyles(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"),customStyles(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"),customStyles(t=>Dj(o,t))),u&&t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-close svg",{fill:u})),
3369 -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,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks,{...n})})})})}function Ej(t){
3370 -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",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,
3371 -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)(()=>{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,{
3372 -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,template:Kj,templateLock:!1,renderAppender:D.InnerBlocks.DefaultBlockAppender};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:a,
3373 -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,I.jsx)(D.InnerBlocks.Content,{})}),!o&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",children:Zj})]})})})}Jj.propTypes={},Qj.propTypes={};const tw={
3374 -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",children:ew})]})})})}iw.propTypes={},(0,M.xV)(Gj.UU,Gj.$t[0])&&(0,o.registerBlockType)(Gj.UU,{icon:(0,I.jsx)("span",{
3375 -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}]});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(){
3376 -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",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},
3377 -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={});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)},
3378 -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;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),
3379 -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,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",
3380 -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,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,
3381 -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",{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,
3382 -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,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",
3383 -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,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,
3384 -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,{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){
3385 -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,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",
3386 -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,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,
3387 -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,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,
3388 -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",style:{color:d===e&&"#00AD6B"},onClick:()=>{return e=t.id,i=t.label,H(e),void k(i);var e,i},
3389 -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];i({mapMarkerList:s})})(e,t?.id)})]})]})})},t.id)),t.placeholder]})})}),(0,I.jsx)("button",{
3390 -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="")=>{const{mapWidth:i,mapHeight:o}=t,a=(0,M.Zy)(t.mapWidth,{value:100,valueUnit:"%"}),l=(0,
3391 -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;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),
3392 -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"),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"),
3393 -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,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,
3394 -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,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,
3395 -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:{type:"string",default:"front"},transitionSpeed:{type:"number",default:.6},cardBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,
3396 -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:"",
3397 -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:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",
3398 -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:"",
3399 -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:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",
3400 -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:"",
3401 -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:""}},frontPadding:{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:""}},backPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",
3402 -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:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",
3403 -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:"",
3404 -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:"",
3405 -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:"",
3406 -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:""}},
3407 -_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,
3408 -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:"",
3409 -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,
3410 -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,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)
3411 -}},[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,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,
3412 -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,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",{
3413 -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);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))),
3414 -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:{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"}
3415 -}],["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,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])
3416 -;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",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"]},{
3417 -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){
3367 +},[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,
3383 +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 +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,
3386 +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,
3388 +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 +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:{
3396 +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 +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 +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 +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:"",
3400 +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:"",
3401 +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:""}},frontPadding:{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:"",
3402 +leftMobile:"",unitMobile:""}},backPadding:{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:""}},_width:{type:"object",
3403 +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:"",rightWidthHMobile:"",
3404 +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:{
3405 +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:"",
3406 +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 +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 +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 +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 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 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 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 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,
@@ -4293,55 +4293,56 @@
4293 4293 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 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 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 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"}];function bI(t){const{attributes:e,setAttributes:i}=t,{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)(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"),initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Marquee Direction","ablocks"),options:rI,isSearch:!1,attributeName:"marqueeDirection",attributeValue:a,
4298 -setAttributes:i,isInline:!1}),(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,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,
4299 -L.__)("Speed (Fast To Slow)(ms)","ablocks"),attributeName:"marqueeSpeed",attributeValue:n,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]})})})})}bI.propTypes={};const cI={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:{type:"boolean",default:!1},enableShadow:{type:"boolean",default:!0},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:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{
4300 -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:"",unitWidthMobile:"",
4301 -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:"",
4302 -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:"",imgXPositionUnitMobile:"",
4303 -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:"",
4304 -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:"",
4305 -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:"",
4306 -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:{
4307 -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"}}}},dI=({addNewMarquee:t})=>(0,
4308 -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 uI(t){const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,marqueeSlideLength:b}=e,c=(0,r.useDispatch)(),d=(0,a.useRef)(null),{insertBlock:u}=wp.blockEditor?c("core/block-editor"):c("core/editor"),p=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(n),[n]),{children:m,...h}=(0,D.useInnerBlocksProps)({className:"ablocks-block-marquee"},{template:[[{}]],renderAppender:!1}),g=()=>{const t=(0,o.createBlock)("ablocks/marquee-child");u(t,b,n),i({marqueeSlideLength:b+1})};return(0,a.useEffect)(()=>{if(d.current){const t=d.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?"scroll":""}}},[p]),(0,I.jsxs)(l().Fragment,{
4309 -children:[(0,I.jsx)(dI,{addNewMarquee:g}),(0,I.jsx)(Yb.A,{blockId:s,name:cI.UU,attributes:e,children:(0,I.jsx)("div",{...h,className:"ablocks-block-marquee",ref:d,children:(0,I.jsxs)("div",{className:"ablocks-block-marquee__children",children:[(0,I.jsx)("div",{className:"ablocks-block-marquee__children-child",children:m}),(0,I.jsx)("div",{role:"presentation",onClick:g,children:(0,I.jsx)("button",{className:"ablocks-block-marquee__custom-btn",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]})})})]})}const pI=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:12,unitDefaultValue:"px",property:"gap",device:e})});function mI(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:cI.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-marquee",
4310 -"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,{})})})})})}mI.propTypes={},mI.defaultProps={};const hI={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:"",leftMobile:"",unitMobile:""}},_padding:{
4311 -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:"",
4312 -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:"",
4313 -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:"",
4314 -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:"",
4315 -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",
4316 -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,
4317 -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",yPositionTablet:"0",
4318 -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 gI(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:hI.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,I.jsx)("div",{
4319 -className:"ablocks-block-marquee__children",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})})}function fI(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})]})})})}gI.propTypes={},gI.defaultProps={},(0,M.xV)(cI.UU)&&(0,o.registerBlockType)(cI.UU,{attributes:cI.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}),i?.blockVersion||o({
4320 -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-block-marquee .ablocks-block-marquee__children-child",pI(i),pI(i,"Tablet"),pI(i,"Mobile"),(e=t=>pI(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)(bI,{...t}),(0,I.jsx)(uI,{...t})]})},save:mI,deprecated:[{attributes:hI.uK,save:gI}]}),fI.propTypes={};const yI={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",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
4321 -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:"",
4322 -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,
4323 -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:"",
4324 -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",
4325 -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:"",
4326 -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:"",
4327 -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",
4328 -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",
4329 -default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function TI(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:yI.UU,attributes:e,children:(0,I.jsx)("div",{...s})})}function HI(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(dR,{blockId:i,name:yI.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}TI.propTypes={},TI.defaultProps={},HI.propTypes={},HI.defaultProps={},(0,M.xV)(yI.UU,yI.$t[0])&&(0,o.registerBlockType)(yI.UU,{title:(0,L.__)("Marquee Child","ablocks"),attributes:yI.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-video"}),edit:function(t){const{isSelected:e,attributes:i,clientId:o}=t,l=(0,
4330 -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)(fI,{...t}),(0,I.jsx)(TI,{...t})]})},save:HI});var MI=i(88297);const xI=[{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"}],kI=[{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"},{label:(0,
4331 -L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],vI=[{label:(0,L.__)("Current URL","ablocks"),value:"current-url"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom-url"}],_I=[{label:(0,L.__)("Current URL","ablocks"),value:"current-url"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom-url"}];function RI(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,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,{
4332 -content:(0,I.jsxs)(I.Fragment,{children:[(n||p)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Direction","ablocks"),options:xI,attributeName:"direction",attributeValue:d,setAttributes:i}),(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Alignment","ablocks"),options:kI,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,L.__)("Show Display Name","ablocks"),attributeName:"isShowName",attributeValue:p,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ut,{label:(0,
4333 -L.__)("Redirect After Logout","ablocks"),options:vI,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.__)("Only works on the same domain for security reasons.","ablocks")})]}),(0,I.jsx)(Ut,{label:(0,L.__)("Redirect After Login","ablocks"),options:_I,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,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,
4334 -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,{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"),
4335 -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"}],attributeName:"avatarHeight",setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:MI.P6,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),
4336 -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:MI.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})]})})})})]})})})}RI.propTypes={},RI.defaultProps={};const SI="ablocks/logout";function WI(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:SI,attributes:{...e,className:"ablocks-prevent-select"},children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/logout",httpMethod:"POST",attributes:e})})})})}WI.propTypes={},WI.defaultProps={};const PI=(t,e="")=>{const i={}
4337 -;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)}},UI=(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)}},jI=(t,e="")=>{const i=(0,M.Zy)(t.avatarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function wI(t){
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:{
4300 +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 +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 +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 +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 +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 +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 +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 +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:"",
4312 +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 +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 +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 +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 +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 +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 +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",
4322 +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 +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 +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 +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 +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 +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 +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 +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,
4335 +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 +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){
4338 4339 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,
4339 4340 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,
4340 4341 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,
4341 -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)(SI)&&(0,o.registerBlockType)(SI,{attributes:MI.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"
4342 -}),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",PI(i),PI(i,"Tablet"),PI(i,"Mobile"),e(t=>PI(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",UI(i),UI(i,"Tablet"),UI(i,"Mobile"),e(t=>UI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar:hover",jI(i),jI(i,"Tablet"),jI(i,"Mobile"),e(t=>jI(i,t))),t.generateCSS()},[i,l]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(RI,{...t}),(0,I.jsx)(WI,{...t})]})},save:()=>null}),
4343 -wI.propTypes={};const zI={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:"",
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:"",
4344 4345 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:"",
4345 4346 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,
4346 4347 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:"",
4347 4348 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",
@@ -4348,9 +4349,9 @@
4348 4349 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:"",
4349 4350 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:"",
4350 4351 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",
4351 4352 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",
4352 -default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},CI=[{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 AI,LI=Object.defineProperty,DI=Object.getOwnPropertySymbols,NI=Object.prototype.hasOwnProperty,II=Object.prototype.propertyIsEnumerable,VI=(t,e,i)=>e in t?LI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,OI=(t,e)=>{for(var i in e||(e={}))NI.call(e,i)&&VI(t,i,e[i]);if(DI)for(var i of DI(e))II.call(e,i)&&VI(t,i,e[i]);return t},YI=(t,e)=>{var i={};for(var o in t)NI.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&DI)for(var o of DI(t))e.indexOf(o)<0&&II.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,
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,
4353 4354 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++){
4354 4355 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)
4355 4356 ;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)
4356 4357 ;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=[]
@@ -4360,17 +4361,17 @@
4360 4361 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,
4361 4362 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]],
4362 4363 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)}
4363 4364 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
4364 -;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})(AI||(AI={})),(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={}))})(AI||(AI={})),(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
4365 -})(e=t.QrSegment||(t.QrSegment={}))})(AI||(AI={}));var XI=AI,BI={L:XI.QrCode.Ecc.LOW,M:XI.QrCode.Ecc.MEDIUM,Q:XI.QrCode.Ecc.QUARTILE,H:XI.QrCode.Ecc.HIGH},EI=128,FI="L",qI="#FFFFFF",$I="#000000",GI=!1,ZI=1;function KI(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 JI(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 QI({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(...XI.QrSegment.makeSegments(e)),t),[]);return XI.QrCode.encodeSegments(o,BI[e],i,void 0,void 0,r)},[t,e,i,r])
4366 -;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 tV=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}(),eV=a.forwardRef(function(t,e){
4367 -const i=t,{value:o,size:l=EI,level:n=FI,bgColor:s=qI,fgColor:r=$I,includeMargin:b=GI,minVersion:c=ZI,boostLevel:d,marginSize:u,imageSettings:p}=i,m=YI(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=m,g=YI(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}=QI({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=JI(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,
4368 -tV?e.fill(new Path2D(KI(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=OI({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",OI({style:S,height:l,width:l,ref:H,role:"img"},g)),W)});eV.displayName="QRCodeCanvas";var iV=a.forwardRef(function(t,e){const i=t,{value:o,size:l=EI,level:n=FI,bgColor:s=qI,fgColor:r=$I,includeMargin:b=GI,minVersion:c=ZI,boostLevel:d,title:u,marginSize:p,imageSettings:m}=i,h=YI(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:f,numCells:y,calculatedImageSettings:T}=QI({value:o,level:n,minVersion:c,boostLevel:d,includeMargin:b,marginSize:p,
4369 -imageSettings:m,size:l});let H=f,M=null;null!=m&&null!=T&&(null!=T.excavation&&(H=JI(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=KI(H,g);return a.createElement("svg",OI({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 oV(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`)
4370 -;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:CI})}),(0,I.jsx)(Yb.A,{blockId:n,name:zI.UU,attributes:e,children:(0,I.jsx)(iV,{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})})]})}
4371 -iV.displayName="QRCodeSVG",oV.propTypes={};const aV=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}};function lV(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:zI.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})]})})})}lV.propTypes={},(0,o.registerBlockType)(zI.UU,{title:(0,L.__)("QR Code","ablocks"),attributes:zI.uK,icon:(0,I.jsx)("span",{
4372 -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",aV(i,""),aV(i,"Tablet"),aV(i,"Mobile"),(e=t=>aV(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)(wI,{...t}),(0,I.jsx)(oV,{...t})]})},save:lV});var nV=i(71651);function sV(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
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
4373 4374 }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}
4374 4375 ;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,
4375 4376 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,
4376 4377 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,
@@ -4377,9 +4378,9 @@
4377 4378 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,
4378 4379 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,
4379 4380 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,
4380 4381 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)=>{
4381 -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:nV.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"),
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"),
4382 4383 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:{
4383 4384 ...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}}}}})}})]}),
4384 4385 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,
4385 4386 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,
@@ -4387,9 +4388,9 @@
4387 4388 ...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,
4388 4389 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,
4389 4390 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"}],
4390 4391 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,
4391 -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]})})})}sV.propTypes={};const rV={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",
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",
4392 4393 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:{
4393 4394 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:"",
4394 4395 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:"",
4395 4396 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:"",
@@ -4397,13 +4398,13 @@
4397 4398 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,
4398 4399 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:"",
4399 4400 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,
4400 4401 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:{
4401 -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 bV(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,
4402 -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:rV.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 cV=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),dV=(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={
4403 -...(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 uV(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:rV.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"})})})}uV.propTypes={};function pV(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",{
4404 -style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}pV.propTypes={},(0,M.xV)(rV.UU)&&(0,o.registerBlockType)(rV.UU,{title:(0,L.__)("Chart","ablocks"),attributes:rV.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}}",cV(i),cV(i,"Tablet"),cV(i,"Mobile"),e(t=>cV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-chart-canvas",dV(i),dV(i,"Tablet"),dV(i,"Mobile"),e(t=>dV(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{
4405 -children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(sV,{...t}),(0,I.jsx)(bV,{...t})]})},save:uV,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:{
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:{
4406 4407 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:"",
4407 4408 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:"",
4408 4409 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:"",
4409 4410 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:"",
@@ -4410,18 +4411,18 @@
4410 4411 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:"",
4411 4412 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:"",
4412 4413 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",
4413 4414 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",
4414 -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:pV}]});var mV=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 hV=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom"}],gV=[{label:(0,
4415 -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"}],fV=[{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"}],yV=[{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 TV(t){
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){
4416 4417 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}
4417 -})(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:yV,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,
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,
4418 4419 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,
4419 -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:gV,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,
4420 -L.__)("Link","ablocks"),options:hV,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,{
4421 -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:fV,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:mV.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,
4422 -step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:mV.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:mV.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,{
4423 -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})})})})})}TV.propTypes={};const HV={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:"",
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:"",
4424 4425 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:"",
4425 4426 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:"",
4426 4427 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,
4427 4428 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:"",
@@ -4431,19 +4432,19 @@
4431 4432 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:"",
4432 4433 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:"",
4433 4434 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,
4434 4435 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:"",
4435 -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"}}}},MV=t=>parseInt(t||0,10)||0;function xV(t){const{attributes:e,context:i}=t,{block_id:o}=e,l=(0,r.useSelect)(t=>{
4436 -const o=t("core/editor"),a=t("core/edit-site")?.getEditedPostContext?.()??{},l=MV(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 MV(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:HV.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,I.jsx)(tW(),{block:HV.UU,httpMethod:"POST",attributes:e,urlQueryArgs:n},`fi-ssr-${l}`)})}const kV=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},vV=(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},_V=(t,e="")=>{const{opacity:i,onHoverImg:o}=t,a={},l={...(0,Eb.qD)({attributeValue:i,defaultValue:1,
4437 -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)}},RV=(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)({
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)({
4438 4439 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{
4439 -...a,...l,...(0,y.a9)(r,e),...(0,cy.qD)(t?.cssHoverFilter,e),...(0,H.a9)(t?.boxShadow,e)}};(0,M.xV)(HV.UU)&&(0,o.registerBlockType)(HV.UU,{title:(0,L.__)("Featured Image","ablocks"),attributes:HV.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}}",kV(i),kV(i,"Tablet"),kV(i,"Mobile"),e(t=>kV(i,t))),t.addClassStyles("{{WRAPPER}}",vV(i),vV(i,"Tablet"),vV(i,"Mobile"),e(t=>vV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container > .ablocks-block--featured-image > .ablocks-featured-image",_V(i),_V(i,"Tablet"),_V(i,"Mobile"),e(t=>_V(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--featured-image img:hover",RV(i),RV(i,"Tablet"),RV(i,"Mobile"),e(t=>RV(i,t))),(0,
4440 -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)(TV,{...t}),(0,I.jsx)(xV,{...t})]})},save:()=>null});var SV=i(58372);function WV(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"),
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"),
4441 4442 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,
4442 -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:SV.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,
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,
4443 4444 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,
4444 -setAttributes:i,attributeDefaultValue:SV.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"),
4445 -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})]})})})]})})})}WV.propTypes={};const PV={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:{
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:{
4446 4447 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:"",
4447 4448 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:"",
4448 4449 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:""}
4449 4450 },_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",
@@ -4453,22 +4454,22 @@
4453 4454 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",
4454 4455 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",
4455 4456 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",
4456 4457 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:{
4457 -type:"array",default:[],items:{type:"object"}}}};function UV(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:PV.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})})})})}UV.propTypes={};const jV=(t,e="")=>{const i={};return t?.breadcrumbSpaceBetween&&(i.gap=`${t?.breadcrumbSpaceBetween}px`),{...i,...(0,Zt.qD)(t?.positionBreadcrumb,"justify-content",e)}},wV=(t,e="")=>({...(0,Zt.qD)(t?.positionBreadcrumb,"justify-content",e)}),zV=(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,
4458 -...(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)}},CV=(t,e="")=>{const i={};return t?.breadcrumbLinkcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbLinkcolor)),{...i}},AV=(t,e="")=>{const i={};return t?.breadcrumbHoverLinkcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbHoverLinkcolor)),{...i}},LV=(t,e="")=>{const i={};return t?.breadcrumbseparatorcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbseparatorcolor)),t?.breadcrumbseparsize&&(i.fontsize=`${t?.breadcrumbseparsize}px`),{...i}},DV=(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)(PV.UU)&&(0,o.registerBlockType)(PV.UU,{title:(0,L.__)("Breadcrumb","ablocks"),attributes:PV.uK,icon:(0,I.jsx)("span",{
4459 -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",jV(i),jV(i,"Tablet"),jV(i,"Mobile"),t.customDeviceMap(t=>jV(i,t))),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span",wV(i),wV(i,"Tablet"),zV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a",CV(i),CV(i,"Tablet"),CV(i,"Mobile"),t.customDeviceMap(t=>CV(i,t))),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a:hover",AV(i),AV(i,"Tablet"),AV(i,"Mobile"),t.customDeviceMap(t=>AV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__item",zV(i),zV(i,"Tablet"),zV(i,"Mobile"),t.customDeviceMap(t=>zV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__separator",LV(i),LV(i,"Tablet"),LV(i,"Mobile"),t.customDeviceMap(t=>LV(i,t))),
4460 -t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs___before-image , {{WRAPPER}} .ablocks-breadcrumbs__before-text",DV(i),DV(i,"Tablet"),DV(i,"Mobile"),t.customDeviceMap(t=>DV(i,t))),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(WV,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(UV,{...t})]})},save:()=>null});const NV=(0,Eb.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),IV=(0,Eb.D$)({attributeName:"innerCircleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:250,defaultValueTablet:200,defaultValueMobile:120,copyStyle:!0}),VV=(0,Eb.D$)({attributeName:"itemButtonSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:120,defaultValueMobile:80,copyStyle:!0}),OV=(0,Eb.D$)({attributeName:"itemPosition",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,
4461 -defaultValueTablet:30,defaultValueMobile:20,copyStyle:!0}),YV=(0,Eb.D$)({attributeName:"circleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:450,defaultValueTablet:350,defaultValueMobile:250,copyStyle:!0}),XV=(0,Eb.D$)({attributeName:"dividerWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),BV=(0,Eb.D$)({attributeName:"imgWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),EV=(0,Eb.D$)({attributeName:"itemSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),FV=(0,Eb.D$)({attributeName:"imgRadius",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),qV=(0,Eb.D$)({attributeName:"imgHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),$V=(0,Eb.D$)({
4462 -attributeName:"dividerWeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),GV=((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"),
4463 -value:"dashed"}]),ZV=((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")}]),KV=[{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}],JV=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 QV(t){
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){
4464 4465 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=()=>{
4465 4466 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)
4466 4467 },[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,
4467 4468 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"),
4468 -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:YV}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,
4469 -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:VV}),!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:OV
4470 -}),(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:IV})]})})}),(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,
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,
4471 4472 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"),
4472 4473 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",
4473 4474 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
4474 4475 ;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,
@@ -4475,13 +4476,13 @@
4475 4476 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({
4476 4477 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",
4477 4478 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,
4478 4479 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"),
4479 -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:EV})," ",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:GV,
4480 -attributeName:"dividerPatternUrl",attributeValue:j,onChangeHandler:t=>{const e=GV?.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:$V,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:XV}),(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,
4481 -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:FV}),(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:BV}),(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:qV}),(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"}],
4482 -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:ZV,attributeName:"iconType",attributeValue:x,setAttributes:i}),dt&&(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:KV,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:NV,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"),
4483 -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})]})})})]})})})}QV.propTypes={};const tO={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:{
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:{
4484 4485 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},
4485 4486 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:"",
4486 4487 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:"",
4487 4488 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,
@@ -4499,112 +4500,112 @@
4499 4500 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:"",
4500 4501 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:"",
4501 4502 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:{
4502 4503 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:{
4503 -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 eO({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,
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,
4504 4505 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",{
4505 -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 iO({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)(JV,{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 oO({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,{
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,{
4506 4507 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",
4507 -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 aO(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"),
4508 -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:tO.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)(eO,{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?{
4509 -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)(iO,{index:i,attributes:e,list:t})})},t.id)," "]})})}),(0,I.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,I.jsx)(eO,{activeSegment:w,attributes:e})})," "]}),!r&&s?.map((t,i)=>{
4510 -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)(iO,{index:i,attributes:e,list:t})})," "]})},t.id)})]})]})})})]})}aO.propTypes={};const lO=(t,e="")=>{const i={},{alignment:o}=t;return i["justify-content"]=`${o?.["value"+e]||"center"}`,i.display="flex",{...i}},nO=(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}},sO=(t,e="")=>{const i=(0,
4511 -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)}},rO=(t,e="")=>{const i=(0,M.Zy)(t?.segMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},bO=(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)}},cO=(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},dO=(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,
4512 -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)}},uO=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},pO=(t,e)=>{const i=(0,M.Zy)(t.itemTypography,{weight:"400"}),o=t.itemTypographyGlobal?t.itemTypographyGlobal:[]
4513 -;return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.itemColor)}},mO=(t,e)=>({background:(0,Hs.qD)(t?.itemButtonColor)}),hO=(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)({
4514 -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)}},gO=(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)}},fO=(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)}},yO=(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",
4515 -isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}},TO=(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)}},HO=(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})}},MO=(t,e="")=>{const i={},{circleSize:o,enableSegments:a}=t
4516 -;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 xO({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,
4517 -...(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:tO.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)(oO,{activeSegment:T,attributes:t})}),(0,I.jsxs)("div",{className:1==a?"ablocks-interactive-segments":"ablocks-interactive-items",children:[a&&(0,I.jsxs)(I.Fragment,{
4518 -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)(iO,{index:i,attributes:t,list:e},i)})},e.id)," "]}))}),(0,I.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,I.jsx)(oO,{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)(iO,{index:i,attributes:t,list:e},i)})," "]})},e.id))]
4519 -})]})})})})}xO.propTypes={},(0,M.xV)(tO.UU)&&(0,o.registerBlockType)(tO.UU,{title:(0,L.__)("Infographic Block","ablocks"),attributes:tO.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",nO(i),nO(i,"Tablet"),nO(i,"Mobile"),t.customDeviceMap(t=>nO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment-content.ablocks-interactive-item-content",rO(i),rO(i,"Tablet"),rO(i,"Mobile"),t.customDeviceMap(t=>rO(i,t))),
4520 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segments",MO(i),MO(i,"Tablet"),MO(i,"Mobile"),t.customDeviceMap(t=>MO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle",sO(i),sO(i,"Tablet"),sO(i,"Mobile"),t.customDeviceMap(t=>sO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle:hover",bO(i),bO(i,"Tablet"),bO(i,"Mobile"),t.customDeviceMap(t=>bO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",lO(i),lO(i,"Tablet"),lO(i,"Mobile"),t.customDeviceMap(t=>lO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-inner",mO(i),mO(i),mO(i),t.customDeviceMap(t=>mO(i))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment",mO(i),mO(i),mO(i),t.customDeviceMap(t=>mO(i))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner",hO(i),hO(i,"Tablet"),hO(i,"Mobile"),t.customDeviceMap(t=>hO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner:hover",gO(i),gO(i,"Tablet"),gO(i,"Mobile"),t.customDeviceMap(t=>gO(i,t))),
4521 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner h2",fO(i),fO(i,"Tablet"),fO(i,"Mobile"),t.customDeviceMap(t=>fO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner .ablocks-divider__pattern-css",yO(i),yO(i,"Tablet"),yO(i,"Mobile"),t.customDeviceMap(t=>yO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner p",TO(i),TO(i,"Tablet"),TO(i,"Mobile"),t.customDeviceMap(t=>TO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner img",HO(i),HO(i,"Tablet"),HO(i,"Mobile"),t.customDeviceMap(t=>HO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content",hO(i),hO(i,"Tablet"),hO(i,"Mobile"),t.customDeviceMap(t=>hO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content:hover",gO(i),gO(i,"Tablet"),gO(i,"Mobile"),t.customDeviceMap(t=>gO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content h2",fO(i),fO(i,"Tablet"),fO(i,"Mobile"),t.customDeviceMap(t=>fO(i,t))),
4522 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content .ablocks-divider__pattern-css",yO(i),yO(i,"Tablet"),yO(i,"Mobile"),t.customDeviceMap(t=>yO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content p",TO(i),TO(i,"Tablet"),TO(i,"Mobile"),t.customDeviceMap(t=>TO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content img",HO(i),HO(i,"Tablet"),HO(i,"Mobile"),t.customDeviceMap(t=>HO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content",cO(i),cO(i,"Tablet"),cO(i,"Mobile"),t.customDeviceMap(t=>cO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-svg-icon",dO(i),dO(i,"Tablet"),dO(i,"Mobile"),t.customDeviceMap(t=>dO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-items-content .ablocks-svg-icon:hover",uO(i),uO(i,"Tablet"),uO(i,"Mobile"),t.customDeviceMap(t=>uO(i,t))),
4523 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-interactive__item-text",pO(i),pO(i,"Tablet"),pO(i,"Mobile"),t.customDeviceMap(t=>pO(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)(QV,{...t}),(0,I.jsx)(aO,{...t})]})},save:xO});const kO=[{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"],
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"],
4524 4525 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",
4525 4526 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",
4526 4527 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"],
4527 -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}]]}],vO=[{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 _O(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({
4528 -mailchimpListIdOptions:[...i.mailchimpListIdOptions,...e],mailchimpValidateApi:!0})}else o({mailchimpListIdOptions:[{label:"select options",value:"default"}],mailchimpValidateApi:!1})}}function RO(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 SO(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})}}
4529 -function WO(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 PO(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 UO(t,e,i,o){try{
4530 -const a=await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,api:e});"mailchimp"===t&&_O(t,a,o,i),"mailerlite"===t&&RO(t,a,o,i),"drip"===t&&SO(t,a,o,i),"getresponse"===t&&WO(t,a,o,i),"convertkit"===t&&PO("convertkit",a,o,i)}catch(e){"mailchimp"===t&&i({mailchimpListIdOptions:[{label:"select options",value:"default"}]})}}const jO=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&&_O(t,o,i,e),"mailerlite"===t&&!0===o.data.success&&RO(t,o,i,e),"drip"===t&&!0===o.data.success&&SO(t,o,i,e),"getresponse"===t&&!0===o.data.success&&WO("getresponse",o,i,e),"convertkit"===t&&!0===o.data.success&&PO("convertkit",o,i,e)},wO=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){
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){
4531 4532 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",
4532 -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})}}},zO=[{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"}],CO=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"})]}),AO=[{label:(0,L.__)("Collect Submission","ablocks"),value:"submission"},{label:(0,L.__)("Mailchimp","ablocks"),
4533 -value:"mailchimp"},{label:CO((0,L.__)("Mailerlite","ablocks")),value:"mailerlite",isDisabled:!M.zX},{label:CO((0,L.__)("Drip","ablocks")),value:"drip",isDisabled:!M.zX},{label:CO((0,L.__)("GetResponse","ablocks")),value:"getResponse",isDisabled:!M.zX},{label:CO((0,L.__)("Convertkit","ablocks")),value:"convertkit",isDisabled:!M.zX},{label:CO((0,L.__)("Webhook","ablocks")),value:"webhook",isDisabled:!M.zX}],LO=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Custom","ablocks"),value:"custom"}],DO=[{label:(0,L.__)("User IP","ablocks"),value:"userIp"},{label:(0,L.__)("User Agent","ablocks"),value:"userAgent"}],NO=({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,
4534 -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:AO,attributeName:"formActions",attributeValue:i||[],setAttributes:e})})})},IO=(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"})]}),VO=({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=>{
4535 -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"})]}):IO}),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,
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,
4536 4537 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")})]})]})]})
4537 -},OO=({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)(VO,{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,
4538 -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)(VO,{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 YO({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,
4539 -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")&&jO("mailchimp",e,t)},[i]),(0,a.useEffect)(()=>{"custom"===H&&""===o||"default"===l||"default"!==g&&void 0!==g||wO("mailchimp","custom"===H?o:void 0,l,e)},[l,H,o]),(0,a.useEffect)(()=>{"custom"===H&&""!==o&&UO("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",{
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",{
4540 4541 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",{
4541 -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)(OO,{label:(0,L.__)("Custom API Key","ablocks"),type:"text",
4542 -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)(OO,{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)(OO,{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)(OO,{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",{
4543 -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)(OO,{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,
4544 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,I.jsx)(OO,{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)(OO,{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)(OO,{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,
4545 -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)(OO,{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 XO({attributes:t,setAttributes:e}){
4546 -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")&&jO("mailerlite",e,t)},[l,i]),(0,a.useEffect)(()=>{"default"===r||"default"!==c&&void 0!==c||wO("mailerlite",n,r,e)},[r]),(0,a.useEffect)(()=>{""!==n&&UO("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,
4547 -I.jsx)(OO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({mailerliteOption:t.target.value}),options:LO,attributes:t,setAttributes:e}),"custom"===l&&(0,I.jsx)(OO,{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)(OO,{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",{
4548 -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 BO({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")&&jO("drip",e,t)},[i,l]),(0,a.useEffect)(()=>{""!==n&&UO("drip",n,e,t)},[n]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",
4549 -children:[(0,I.jsx)(OO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({dripOption:t.target.value}),options:LO,attributes:t,setAttributes:e}),"custom"===l&&(0,I.jsx)(OO,{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)(OO,{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)(OO,{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",{
4550 -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)(OO,{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 EO({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 DO.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",{
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",{
4551 4552 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,
4552 4553 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
4553 -}),"aria-label":(0,L.__)("Email Verification","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__submission__toggle-ui","aria-hidden":"true"})]})]})]})]})})}function FO({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")&&jO("getresponse",e,t)},[i,s]),(0,a.useEffect)(()=>{"default"===d||"default"!==u&&void 0!==u||wO("getresponse",l,d,e)},[d]),(0,a.useEffect)(()=>{""!==r&&UO("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,
4554 -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)(OO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:s,onChange:t=>e({getResponseOption:t.target.value}),options:LO,attributes:t,setAttributes:e}),"custom"===s&&(0,I.jsx)(OO,{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)(OO,{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)(OO,{label:(0,L.__)("Day Of Cycle","ablocks"),type:"number",value:t?.getResponseDayCycle||"",onChange:t=>e({
4555 -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 qO({attributes:t,setAttributes:e}){const{webhookLink:i}=t;return(0,
4556 -I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(OO,{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 $O({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
4557 -;return(0,a.useEffect)(()=>{i.includes("convertkit")&&jO("convertkit",e,t)},[n]),(0,a.useEffect)(()=>{""!==s&&UO("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)(OO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:n,onChange:t=>e({convertkitOption:t.target.value}),options:LO,attributes:t,setAttributes:e}),"custom"===n&&(0,I.jsx)(OO,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:s,onChange:t=>e({convertkitApiKey:t.target.value}),attributes:t,
4558 -setAttributes:e}),("default"===n||""!==s)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(OO,{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)(OO,{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)(OO,{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)(OO,{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,
4559 -setAttributes:e})]})]})]})}const GO=[{label:(0,L.__)("User Email","ablocks"),value:"user_email"},{label:(0,L.__)("Admin Email","ablocks"),value:"admin_email"}],ZO=[{label:(0,L.__)("All Data","ablocks"),value:"all-fields"},{label:(0,L.__)("Site Name","ablocks"),value:"site_name"}],KO=[{label:(0,L.__)("Site Name","ablocks"),value:"site_name"}],JO=(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},QO=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const{link:l,confirmationType:n}=t,s=n||"success",[r,b]=(0,
4560 -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)(OO,{label:(0,L.__)("Confirmation message","ablocks"),type:"textarea",value:t?.confirmationNotice,onChange:t=>e({confirmationNotice:t.target.value}),showAction:!0,genericTags:KO,formTags:JO(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",{
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",{
4561 4562 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,
4562 4563 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",{
4563 4564 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})]
4564 -}),"redirect"===s&&(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__redirect",children:[(0,I.jsx)(OO,{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 tY=i(75827),eY=i(62682),iY=i.n(eY);const oY=tY.default.import("blots/block");class aY extends oY{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}
4565 -deleteAt(t,e){super.deleteAt(t,e),this.cache={}}static value(t){const{src:e,custom:i}=t.dataset;return{src:e,custom:i}}}aY.blotName="imageBlot",aY.className="image-uploading",aY.tagName="span",tY.default.register({"formats/imageBlot":aY});const lY=aY;class nY{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/*"),
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/*"),
4566 4567 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
4567 -;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,lY.blotName,`${t}`,"user")}insertToEditor(t){const e=this.range,i=this.calculatePlaceholderInsertLength();this.quill.deleteText(e.index,i,"user"),
4568 -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=nY;const sY=nY;var rY=i(59792),bY=i(64036),cY=i.n(bY),dY=i(73117),uY=i.n(dY);const pY=tY.default.import("blots/block/embed");class mY extends pY{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")}}mY.blotName="customVideo",mY.tagName="video",tY.default.register(mY);class hY extends pY{static create(t){const e=super.create();return e.setAttribute("src",t),e.setAttribute("controls",!0),e.setAttribute("class","ablocks-custom-audio"),
4569 -e.setAttribute("data-blot-formatter-unclickable-bound",!0),e}static value(t){return t.getAttribute("src")}}hY.blotName="customAudio",hY.tagName="audio",tY.default.register(hY);class gY extends pY{static create(t){const e=super.create();return e.innerHTML=t,e}static value(t){return t.innerHTML}}gY.blotName="customHTML",gY.tagName="div",tY.default.register(gY);const fY=tY.default.import("formats/image");function yY({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 tY.default(`#editor-container--${i}`,{modules:{toolbar:{container:[[{font:[]}],[{header:["1","2","3","4","5","6"]}],[{
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"]}],[{
4570 4571 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
4571 4572 ;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=>{
4572 -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}`})})}tY.default.register("modules/imageUploader",sY),tY.default.register("modules/imageResize",iY()),tY.default.register("modules/blotFormatter",rY.Ay),tY.default.register("modules/htmlEditButton",uY()),tY.default.register("modules/table",cY()),tY.default.register(class extends fY{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),
4573 -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 TY={size:Y().string};function HY({size:t="md"}){return(0,I.jsx)("div",{className:`ablocks-preloader ablocks-preloader--${t}`,children:(0,I.jsx)(N.Spinner,{})})}HY.propTypes=TY;const MY=({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([]),
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([]),
4574 4575 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"]}),
4575 4576 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}),
4576 4577 "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),
4577 4578 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"),
4578 4579 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",{
4579 -className:"ablocks-form-builder__email-notifications__grid",children:[(0,I.jsx)(OO,{label:(0,L.__)("From name","ablocks"),type:"text",value:b.from_name||"",onChange:t=>c({...b,from_name:t.target.value}),showAction:!0,formTags:JO(i,o),genericTags:KO,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",
4580 -className:"ablocks-form-builder__email-notifications__ccbcc-toggle",onClick:()=>m(t=>!t),children:[(0,L.__)("Cc","ablocks")," ",(0,L.__)("Bcc","ablocks")]}),(0,I.jsx)(OO,{label:(0,L.__)("From email","ablocks"),type:"email",value:b.from||"",onChange:t=>c({...b,from:t.target.value}),showAction:!0,formTags:JO(i,o,!0),genericTags:GO,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)(OO,{label:(0,L.__)("Cc","ablocks"),type:"email",value:b.cc||"",onChange:t=>c(e=>({...e,cc:t.target.value})),showAction:!0,formTags:JO(i,o,!0),genericTags:GO,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)(OO,{label:(0,L.__)("Bcc","ablocks"),
4581 -type:"email",value:b.bcc||"",onChange:t=>c(e=>({...e,bcc:t.target.value})),showAction:!0,formTags:JO(i,o,!0),genericTags:GO,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)(OO,{label:(0,L.__)("Subject","ablocks"),type:"text",value:b.subject||"",onChange:t=>c({...b,subject:t.target.value}),showAction:!0,formTags:JO(i,o),genericTags:KO,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)(VO,{formTags:JO(i,o),genericTags:ZO,attributes:{...t,body:b.body},setAttributes:t=>c(e=>({...e,body:t.body})),targetKey:"body",isQuillEditor:!0})]}),(0,I.jsx)(yY,{
4582 -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)(OO,{label:(0,L.__)("To","ablocks"),type:"email",value:b.to||"",onChange:t=>c({...b,to:t.target.value}),showAction:!0,formTags:JO(i,o,!0),genericTags:GO,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)(OO,{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:JO(i,o,!0),genericTags:GO,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",{
4583 -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)(HY,{})})})
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,{})})})
4584 4585 }):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",
4585 4586 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",{
4586 -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 xY(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,
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,
4587 4588 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{
4588 4589 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",{
4589 -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)(NO,{...t});case"from_confirmation":return(0,I.jsx)(QO,{...t});case"from_email_notifications":return(0,I.jsx)(MY,{...t});case"mailchimp":return(0,I.jsx)(YO,{...t});case"mailerlite":return(0,I.jsx)(XO,{...t});case"drip":return(0,I.jsx)(BO,{...t});case"submssion":return(0,I.jsx)(EO,{...t})
4590 -;case"getResponse":return(0,I.jsx)(FO,{...t});case"webhook":return(0,I.jsx)(qO,{...t});case"convertkit":return(0,I.jsx)($O,{...t});default:return null}})(i)})]})})})})})}const kY=["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 vY(t){const e=[];return t.attributes?.name&&e.push(t.attributes.name),t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...vY(t))}),e}function _Y(t){return t.map(t=>({name:t.name,clientId:t.clientId,attributes:t.attributes,innerBlocks:t.innerBlocks&&t.innerBlocks.length?_Y(t.innerBlocks):[]}))}function RY(t){return t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?_Y(t.innerBlocks).flatMap(t=>vY(t)).filter(Boolean):[])}function SY(t){const e=[];return kY.includes(t.name)&&e.push(t.attributes?.name||""),
4591 -t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...SY(t))}),e}function WY(t){const e=t.filter(t=>kY.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=>SY(t)):[]);return[...e,...i.filter(t=>""===t.trim())]}var PY=i(90198);const UY=(0,Eb.D$)({attributeName:"labelSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),jY=((0,Eb.D$)({attributeName:"helperTextSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),(0,Eb.D$)({attributeName:"inputIconPosition",isResponsive:!1,defaultValue:75,copyStyle:!0})),wY=(0,Eb.D$)({attributeName:"navigatorSpacing",isResponsive:!1,defaultValue:10,copyStyle:!0}),zY=(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 CY(t){
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){
4592 4593 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,
4593 -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=RY(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",{
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",{
4594 4595 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,
4595 -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:zY}),(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,{
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,{
4596 4597 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,
4597 4598 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"),
4598 4599 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,
4599 -isResponsive:!1,attributeDefaultValue:wY}),(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:UY}),(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:jY})]}),(0,I.jsxs)(V,{title:(0,L.__)("Helper text","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,
4600 -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:UY})]}),(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,
4601 -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:zO,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,
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,
4602 4603 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,
4603 4604 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,
4604 4605 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,{
4605 -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)(xY,{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,PY.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,
4606 -U.D$)("buttonTypography",!0),(0,y.D$)("buttonBorder",!0),_r.Ay;const AY={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",
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",
4607 4608 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",
4608 4609 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:{
4609 4610 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",
4610 4611 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",
@@ -4626,22 +4627,22 @@
4626 4627 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:"",
4627 4628 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:"",
4628 4629 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:{
4629 4630 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"}},
4630 -_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 LY(t){
4631 -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=>vY(t)):[]),o=[...e,...i],a=o.filter((t,e)=>o.indexOf(t)!==e);return[...new Set(a)]}(C),L=WY(C);(0,a.useEffect)(()=>{const t=C.map(t=>({name:t.attributes.name,inputType:t.attributes.inputType}));i({childDetails:t})},[C])
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])
4632 4633 ;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)
4633 4634 ;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={
4634 4635 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,
4635 -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:vO})}),(0,I.jsxs)(Yb.A,{blockId:s,name:AY.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,
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,
4636 4637 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",
4637 -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 DY=t=>{
4638 -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:kO,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)})]})},NY=(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}},IY=(t,e="")=>{const i={}
4639 -;return"multi-step"!==t?.formType&&(i.display="flex",i["flex-wrap"]="wrap",i["row-gap"]="2px",i["column-gap"]="Mobile"===e?"4px":"8px"),{...i}},VY=(t,e="")=>{const i={};return"multi-step"===t?.formType&&(i.display="none"),{...i}},OY=(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})}},YY=(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})}
4640 -;return r["margin-bottom"]&&(r["margin-bottom"]=r["margin-bottom"]+" !important"),a||(r.display="none"),r},XY=(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},BY=(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",
4641 -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)}},EY=(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)}},FY=(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)}},qY=(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)}},$Y=(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,
4642 -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)}},GY=(t,e="")=>{const{buttonTextAlignment:i,buttonAlignment:o}=t;return{...(0,Zt.qD)(i,"text-align",e),...(0,Zt.qD)(o,"align-self",e)}},ZY=(t,e="")=>{const{buttonBorder:i}=t;return{color:(0,Hs.qD)(t?.buttonHColor),background:(0,Hs.qD)(t?.buttonBgHColor),...(0,y.a9)(i,e)}},KY=(t,e)=>{const{inputIconPosition:i}=t;return{...(0,Eb.qD)({attributeValue:i,isResponsive:!1,property:"top",defaultValue:75,unitDefaultValue:"%",device:e})}},JY=(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)}},QY=(t,e)=>{const{navigatorSpacing:i}=t;return{...(0,Eb.qD)({attributeValue:i,isResponsive:!1,property:"margin-bottom",
4643 -defaultValue:20,unitDefaultValue:"px",device:e})}},tX=t=>({color:(0,Hs.qD)(t?.errorColor),background:(0,Hs.qD)(t?.errorBackground)}),eX=t=>({color:(0,Hs.qD)(t?.successColor),background:(0,Hs.qD)(t?.successBackground)}),iX=(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)}},oX={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:{
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:{
4644 4645 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",
4645 4646 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",
4646 4647 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:{
4647 4648 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:{
@@ -4662,26 +4663,26 @@
4662 4663 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:"",
4663 4664 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:"",
4664 4665 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:"",
4665 4666 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:"",
4666 -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)(AY.UU)&&(0,
4667 -o.registerBlockType)(AY.UU,{attributes:AY.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",NY(i),NY(i,"Tablet"),NY(i,"Mobile"),e(t=>NY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__field",OY(i),OY(i,"Tablet"),OY(i,"Mobile"),e(t=>OY(i,t))),
4668 -t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__label",YY(i),YY(i,"Tablet"),YY(i,"Mobile"),e(t=>YY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__helper-text",XY(i),XY(i,"Tablet"),XY(i,"Mobile"),e(t=>XY(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 ",BY(i),BY(i,"Tablet"),BY(i,"Mobile"),e(t=>BY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:hover",EY(i),EY(i,"Tablet"),EY(i,"Mobile"),e(t=>EY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:focus",FY(i),FY(i,"Tablet"),FY(i,"Mobile"),e(t=>FY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input::placeholder",qY(i),qY(i,"Tablet"),qY(i,"Mobile"),e(t=>qY(i,t))),
4669 -t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon,{{WRAPPER}} .ablocks-form-builder__input-toggle-password",KY(i),KY(i,"Tablet"),KY(i,"Mobile"),e(t=>KY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",GY(i),GY(i,"Tablet"),GY(i,"Mobile"),e(t=>GY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",$Y(i),$Y(i,"Tablet"),$Y(i,"Mobile"),e(t=>$Y(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button:hover",ZY(i),ZY(i,"Tablet"),ZY(i,"Mobile"),e(t=>ZY(i,t))),t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",IY(i),IY(i,"Tablet"),IY(i,"Mobile"),e(t=>IY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__fields.block-editor-block-list__layout > .block-list-appender",VY(i),VY(i,"Tablet"),VY(i,"Mobile"),e(t=>VY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator",JY(i),JY(i,"Tablet"),JY(i,"Mobile"),e(t=>JY(i,t))),
4670 -t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator-redirect-page",QY(i),QY(i,"Tablet"),QY(i,"Mobile"),e(t=>QY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__error",tX(i),tX(i),tX(i),e(t=>tX(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__success",eX(i),eX(i),eX(i),e(t=>eX(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__feedback-message",iX(i),iX(i,"Tablet"),iX(i,"Mobile"),e(t=>iX(i,t))),t.generateCSS()},[i]);return i.variationSelected?(0,I.jsx)(DY,{...t}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(CY,{...t}),(0,I.jsx)(LY,{...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,
4671 -I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:AY.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,
4672 -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:oX.uK,save:function(t){
4673 -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:oX.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",{
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",{
4674 4675 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,
4675 -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:kO});const aX=[{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"}],lX=((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"}}),nX=(0,Eb.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),sX=(0,Eb.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),rX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",
4676 -isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),bX=(0,L.__)("name","ablocks");function cX(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&&aX.length>0&&i({inputType:aX[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,
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,
4677 4678 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 */
4678 4679 (0,L.__)("Please Enter your Valid %s","ablocks"),t):(0,L.sprintf)(/* translators: %s: field label */ /* translators: %s: field label */
4679 -(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===bX||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",
4680 -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:aX,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:rX
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
4681 4682 }),"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"),
4682 -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:nX}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:p,setAttributes:i,isInline:!1,min:1,max:100,
4683 -step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:sX})]})]})]})})}(0,L.__)("Name","ablocks"),(0,L.__)("This field is required","ablocks"),(0,y.D$)("border",!0),(0,Ud.D$)("icon",{size:28}),(0,PY.D$)("emailType",!1,{value:"email"}),_r.Ay;const dX={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,
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,
4684 4685 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:"",
4685 4686 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",
4686 4687 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"
4687 4688 },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:"",
@@ -4693,20 +4694,20 @@
4693 4694 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,
4694 4695 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:"",
4695 4696 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,
4696 4697 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:{
4697 -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,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
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
4698 4699 }),{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")
4699 4700 ;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}
4700 4701 ;"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),
4701 -className:W(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:dX.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:lX(f?y:s)}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:R?S:u})]})]})}const pX=(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,
4702 -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},mX=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{...i}},hX=t=>({fill:(0,Hs.qD)(t?.iconColor)}),gX=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(dX.UU,dX.$t[0])&&(0,o.registerBlockType)(dX.UU,{attributes:dX.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}`,pX(e),pX(e,"Tablet"),pX(e,"Mobile"),s.customDeviceMap(t=>pX(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"
4703 -},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",gX(e),gX(e),gX(e),s.customDeviceMap(t=>gX(e))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",mX(e),mX(e),mX(e),s.customDeviceMap(t=>mX(e))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap .ablocks-svg-icon",hX(e),hX(e),hX(e),s.customDeviceMap(t=>hX(e)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),l&&(0,I.jsx)(cX,{...t}),(0,I.jsx)(uX,{...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:dX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,I.jsx)("label",{
4704 -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:lX(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 fX=[{label:(0,L.__)("textarea","ablocks"),value:"textarea"},{label:(0,L.__)("bio","ablocks"),value:"bio"},{label:(0,L.__)("custom","ablocks"),value:"custom"}],yX=(0,Eb.D$)({attributeName:"textAreaRow",isResponsive:!1,defaultValue:5,copyStyle:!0}),TX=(0,Eb.D$)({attributeName:"inputWidth",
4705 -attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function HX(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&&fX.length>0&&i({nameType:fX[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",{
4706 -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:TX}),(0,I.jsx)(Ut,{label:(0,L.__)("Name Type","ablocks"),options:fX,isSearch:!0,attributeName:"nameType",attributeValue:r,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,
4707 -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:yX}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:n,
4708 -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 MX={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:"",
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:"",
4709 4710 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:"",
4710 4711 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:"",
4711 4712 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:"",
4712 4713 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:"",
@@ -4713,15 +4714,15 @@
4713 4714 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:"",
4714 4715 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",
4715 4716 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",
4716 4717 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},
4717 -_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function xX(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,
4718 -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: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:s}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,I.jsx)("textarea",{
4719 -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 kX=(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)(MX.UU,MX.$t[0])&&(0,o.registerBlockType)(MX.UU,{attributes:MX.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}`,kX(i),kX(i,"Tablet"),kX(i,"Mobile"),s.customDeviceMap(t=>kX(i,t))),
4720 -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)(HX,{...t}),(0,I.jsx)(xX,{...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:MX.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",{
4721 -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 vX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function _X(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",
4722 -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:vX}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,
4723 -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 RX={UU:"ablocks/form-checkbox",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{
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:{
4724 4725 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:"",
4725 4726 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:"",
4726 4727 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:"",
4727 4728 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:"",
@@ -4728,18 +4729,18 @@
4728 4729 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:"",
4729 4730 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:"",
4730 4731 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:"",
4731 4732 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:"",
4732 -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 SX(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)(()=>{
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)(()=>{
4733 4734 ""!==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",{
4734 -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:RX.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 WX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({
4735 -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)(RX.UU,RX.$t[0])&&(0,o.registerBlockType)(RX.UU,{attributes:RX.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}`,WX(i),WX(i,"Tablet"),WX(i,"Mobile"),s.customDeviceMap(t=>WX(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"})))
4736 -;const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(_X,{...t}),(0,I.jsx)(SX,{...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:RX.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",{
4737 -className:"ablocks-icon ablocks-icon--checkbox"})});const PX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function UX(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,
4738 -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:PX}),(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,
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,
4739 4740 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}:{
4740 4741 ...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)}
4741 -}),(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 jX={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:"",
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:"",
4742 4743 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:"",
4743 4744 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:"",
4744 4745 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:"",
4745 4746 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:"",
@@ -4746,15 +4747,15 @@
4746 4747 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:"",
4747 4748 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",
4748 4749 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",
4749 4750 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"}},
4750 -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function wX(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,
4751 -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:jX.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})]
4752 -})]})}const zX=(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 CX(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,
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,
4753 4754 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",{
4754 4755 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,
4755 -M.xV)(jX.UU,jX.$t[0])&&(0,o.registerBlockType)(jX.UU,{attributes:jX.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}`,zX(i),zX(i,"Tablet"),zX(i,"Mobile"),s.customDeviceMap(t=>zX(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)(UX,{...t}),(0,I.jsx)(wX,{...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:jX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{
4756 -"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 AX=[{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"}],LX=((0,L.__)("Contact form","ablocks"),(0,L.__)("Subscription form","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,
4757 4758 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",
4758 4759 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:"",
4759 4760 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",
4760 4761 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:"",
@@ -4761,17 +4762,17 @@
4761 4762 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:"",
4762 4763 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,
4763 4764 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:"",
4764 4765 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:"",
4765 -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"}}}}),DX=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"),
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"),
4766 4767 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")),
4767 4768 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=>{
4768 -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 NX(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,
4769 -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 DX(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:AX})}),(0,I.jsxs)(sR,{blockId:o,name:LX.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",{
4770 -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 IX(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,
4771 -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)(LX.UU,LX.$t[0])&&(0,o.registerBlockType)(LX.UU,{attributes:LX.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",{
4772 -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)(CX,{...t}),(0,I.jsx)(NX,{...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,
4773 -I.jsx)(dR,{blockId:i,name:LX.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,
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,
4774 4775 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:{
4775 4776 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:"",
4776 4777 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:{
4777 4778 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:"",
@@ -4778,11 +4779,11 @@
4778 4779 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:"",
4779 4780 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:"",
4780 4781 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:"",
4781 4782 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:"",
4782 -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:LX.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",{
4783 -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 VX=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{
4784 -icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],OX=((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:"",
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:"",
4785 4786 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:"",
4786 4787 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:""}},
4787 4788 _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:"",
4788 4789 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",
@@ -4788,18 +4789,18 @@
4788 4789 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 4790 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:"",
4790 4791 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:"",
4791 4792 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:"",
4792 -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 YX(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,
4793 -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:VX})}),(0,I.jsx)(sR,{blockId:o,name:OX.UU,attributes:e,children:(0,I.jsx)("div",{...n})})]})}(0,M.xV)(OX.UU,OX.$t[0])&&(0,o.registerBlockType)(OX.UU,{attributes:OX.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",{
4794 -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)(IX,{...t}),(0,I.jsx)(YX,{...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,
4795 -I.jsx)(dR,{blockId:i,name:OX.UU,attributes:e,children:(0,I.jsx)("div",{...o})})})}});const XX=[{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}],BX=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},EX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function FX(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,
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,
4796 4797 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,
4797 -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:EX}),(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"),
4798 -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:XX,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,
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,
4799 4800 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",{
4800 4801 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,
4801 -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 qX={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?"
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?"
4802 4803 },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:{
4803 4804 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:"",
4804 4805 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",
4805 4806 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:"",
@@ -4806,21 +4807,21 @@
4806 4807 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:"",
4807 4808 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:"",
4808 4809 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:"",
4809 4810 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",
4810 -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 $X(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"})},[])
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"})},[])
4811 4812 ;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%"}),
4812 -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:qX.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)(BX,{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,
4813 -htmlFor:o})]},e))})]})]})}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,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},ZX=t=>{const e={};return t?.optionWidth&&(e.width=t?.optionWidth-6+"%"),{...e}};(0,M.xV)(qX.UU,qX.$t[0])&&(0,o.registerBlockType)(qX.UU,{attributes:qX.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}`,GX(i),GX(i,"Tablet"),GX(i,"Mobile"),s.customDeviceMap(t=>GX(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{
4814 -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",ZX(i),ZX(i),ZX(i),s.customDeviceMap(t=>ZX(i)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(FX,{...t}),(0,I.jsx)($X,{...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:qX.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,
4815 -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)(BX,{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 KX=(0,Eb.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),JX=(0,Eb.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),QX=(0,Eb.D$)({attributeName:"passwordShowHideIconSize",isResponsive:!1,defaultValue:18,copyStyle:!0}),tB=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,
4816 -defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function eB(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",{
4817 -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:tB}),"login"!==y&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Password Type","ablocks"),options:[{label:(0,L.__)("Password","ablocks"),value:"password"},{
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"},{
4818 4819 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
4819 -}),(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:KX}),(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:JX})]}),m&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Password Show & Hide Icon","ablocks"),children:[(0,I.jsx)(_t,{label:(0,
4820 -L.__)("Size","ablocks"),attributeName:"passwordShowHideIconSize",attributeValue:h,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:QX}),(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",{
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",{
4821 4822 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",{
4822 -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,PY.D$)("passwordType",!1,{value:"password"}),_r.Ay;const iB={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:{
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:{
4823 4824 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:"",
4824 4825 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:"",
4825 4826 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",
4826 4827 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,
@@ -4838,34 +4839,34 @@
4838 4839 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:""}},
4839 4840 _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,
4840 4841 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:"",
4841 4842 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,
4842 -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 oB(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",
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",
4843 4844 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,
4844 -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:iB.UU,attributes:e,className:"ablocks-form-builder__field",children:[(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,
4845 4846 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
4846 -})]})]})}const aB=(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},lB=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{fill:(0,Hs.qD)(t?.iconColor),...i}},nB=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(iB.UU,iB.$t[0])&&(0,o.registerBlockType)(iB.UU,{attributes:iB.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)
4847 -;r.addClassStyles(`.ablocks-block--child-${n}`,aB(i),aB(i,"Tablet"),aB(i,"Mobile"),r.customDeviceMap(t=>aB(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",lB(i),lB(i),lB(i),r.customDeviceMap(t=>lB(i))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",nB(i),nB(i),nB(i),r.customDeviceMap(t=>nB(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)(eB,{...t}),(0,I.jsx)(oB,{
4848 -...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:iB.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",{
4849 -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 sB=i(99512);function rB(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",{
4850 -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 bB=[{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 cB(t){
4851 -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:bB,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,
4852 -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)(rB,{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",{
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",{
4853 4854 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,
4854 -L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubePlayPauseIconSize",attributeValue:n,setAttributes:i,attributeDefaultValue:sB.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:sB.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,
4855 -setAttributes:i,attributeDefaultValue:sB.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:sB.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:sB.$w}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"vimeoUiColor",attributeValue:h,
4856 -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:sB.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})]})]})})})})})})}cB.propTypes={},cB.defaultProps={};const dB="ablocks/player",uB=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,
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,
4857 4858 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",()=>{
4858 4859 !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){
4859 -return t?t.split(":").reverse().reduce((t,e,i)=>t+parseFloat(e)*60**i,0):NaN}destroy(){this.mainPlayer?.destroy()}},pB=({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"})})}),mB={videoUrl:Y().string};function hB(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."]})})}hB.propTypes=mB,hB.defaultProps={videoUrl:""};const gB=({youtubeUrl:t,videoStartTime:e,videoEndTime:i,autoplay:o,mute:a,loop:l})=>{const n=function(t=""){
4860 -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})})},fB=({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 yB(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)(gB,{youtubeUrl:e?.youtubeUrl,
4861 -videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${e.youtubeUrl}-${c}-${d}-${u}-${p}-${m}`);break;case"audio":h=(0,I.jsx)(pB,{audioUrl:s,autoplay:u,mute:p,loop:m},`${s}-${u}-${p}-${m}`);break;case"selfHosted":h=(0,I.jsx)(hB,{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)(fB,{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 uB(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:dB,attributes:{...e,className:"ablocks-prevent-select"},children:h})})}yB.propTypes={},yB.defaultProps={};const TB=(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
4862 -},HB=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},MB=(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},xB=(t,e)=>{const i={};return t?.selfVideoUiColor&&(i["--plyr-color-main"]=t?.selfVideoUiColor),t?.selfHostedIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedIconSize}px`),i},kB=(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`),
4863 -t?.vimeobgColor&&(i["--plyr-video-controls-background"]=(0,Hs.qD)(t?.vimeobgColor),i.padding="0"),i},vB=(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},_B=(t,e)=>{const i={};return t?.posterImage&&(i["background-image"]=`url(${t.posterImage}) !important`),i["background-size"]="cover",i};function RB(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)(gB,{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)(pB,{audioUrl:a,autoplay:b,mute:c,loop:d},`${a}-${b}-${c}-${d}`);break;case"selfHosted":u=(0,I.jsx)(hB,{videoUrl:e?.videoUrl,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d},`${e?.videoUrl}-${s}-${r}-${b}-${c}-${d}`)
4864 -;break;case"vimeo":u=(0,I.jsx)(fB,{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:dB,attributes:e,children:u})})}RB.propTypes={},RB.defaultProps={},(0,M.xV)(dB)&&(0,o.registerBlockType)(dB,{attributes:sB.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",HB(i),HB(i),HB(i),e(t=>HB(i))),
4865 -t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--youtube > .plyr__control--overlaid",TB(i),TB(i),TB(i),e(t=>TB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--video > .plyr__controls",MB(i),MB(i),MB(i),e(t=>MB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--html5 > .plyr__control--overlaid",xB(i),xB(i),xB(i),e(t=>xB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--video > .plyr__controls",kB(i),kB(i),kB(i),e(t=>kB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--vimeo > .plyr__control--overlaid",vB(i),vB(i),vB(i),e(t=>vB(i))),t.addClassStyles("{{WRAPPER}} .plyr__poster",_B(i),_B(i),_B(i),e(t=>_B(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(cB,{...t}),(0,I.jsx)(yB,{...t})]})},save:RB});var SB=i(96931);function WB(t){
4866 -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:SB.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,
4867 -setAttributes:i})]})})})}WB.propTypes={};const PB={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:"",
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:"",
4868 4869 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:"",
4869 4870 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:"",
4870 4871 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:"",
4871 4872 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:"",
@@ -4871,10 +4872,10 @@
4871 4872 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 4873 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:"",
4873 4874 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:"",
4874 4875 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:"",
4875 -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 UB(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])
4876 -;const r=o?void 0:()=>(0,I.jsx)(D.InnerBlocks.ButtonBlockAppender,{});return(0,I.jsx)(tP,{blockId:l,name:PB.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})})})}UB.propTypes={};const jB=[{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,
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,
4877 4878 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,
4878 4879 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:"",
4879 4880 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:"",
4880 4881 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,
@@ -4885,20 +4886,20 @@
4885 4886 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:"",
4886 4887 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:"",
4887 4888 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,
4888 4889 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,
4889 -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"]}],wB=({clientId:t,setAttributes:e,defaultVariation:i=jB[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:jB,onSelect:(l=i)=>{l.attributes&&e({...l.attributes,variationSelected:!0}),l.innerBlocks&&a(t,(0,o.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))}})})},zB=(t,e="")=>{
4890 -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 CB(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:PB.UU,attributes:e,children:(0,I.jsx)("div",{className:"academy-inner-container",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}CB.propTypes={},((0,M.xV)(PB.UU,PB.$t[0],"academy_lms")||(0,M.xV)(PB.UU,PB.$t[0],"quizpress"))&&(0,o.registerBlockType)(PB.UU,{title:(0,L.__)("Certificate Container","ablocks"),attributes:PB.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])
4891 -;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",zB(i),zB(i,"Tablet"),zB(i,"Mobile"),t.customDeviceMap(t=>zB(i,t))),(0,b.applyFilters)("ablocks.academy-container.inlineCSS",t.generateCSS(),i)},[i,l,c,d]);if(!c&&!d)return(0,I.jsx)(wB,{...t});const p=s()("ablocks-block--academy-container");return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(WB,{...t}),u&&(0,I.jsx)("style",{children:u}),(0,I.jsx)(UB,{...t,className:p})]})},save:CB});const AB=({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||""
4892 -;"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})]})},LB=[{label:(0,L.__)("2","ablocks"),value:2},{label:(0,L.__)("3","ablocks"),value:3},{
4893 -label:(0,L.__)("4","ablocks"),value:4},{label:(0,L.__)("6","ablocks"),value:6},{label:(0,L.__)("12","ablocks"),value:12}],DB=[{label:(0,L.__)("Beginner","ablocks"),value:"beginner"},{label:(0,L.__)("Intermediate","ablocks"),value:"intermediate"},{label:(0,L.__)("Expert","ablocks"),value:"experts"}],NB=[{label:(0,L.__)("Free","ablocks"),value:"free"},{label:(0,L.__)("Paid","ablocks"),value:"paid"}],IB=[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Product Title","ablocks"),value:"title"},{label:(0,L.__)("Modified Date","ablocks"),value:"modified"}],VB=[{label:(0,L.__)("Descending","ablocks"),value:"DESC"},{label:(0,L.__)("Ascending","ablocks"),value:"ASC"}];function OB(t){
4894 -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)(AB,{type:"include",...A})},{title:(0,L.__)("Exclude","ablocks"),name:"exclude",render:(0,I.jsx)(AB,{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,
4895 -L.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{options:LB,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:DB,label:(0,L.__)("Difficulty Level","ablocks"),attributeValue:s,attributeName:"difficulty_levels",setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:NB,label:(0,L.__)("Price Type","ablocks"),attributeValue:r,attributeName:"price_types",setAttributes:i}),(0,I.jsx)(Ut,{options:IB,label:(0,L.__)("Order By","ablocks"),attributeValue:b,
4896 -attributeName:"order_by",setAttributes:i}),(0,I.jsx)(Ut,{options:VB,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,
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,
4897 4898 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,
4898 4899 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,
4899 4900 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,
4900 -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})]})]})})})}OB.propTypes={};const YB={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"},
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"},
4901 4902 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:"",
4902 4903 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",
4903 4904 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:"",
4904 4905 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",
@@ -4916,11 +4917,11 @@
4916 4917 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:""}},
4917 4918 _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,
4918 4919 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:"",
4919 4920 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,
4920 -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}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:YB.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}],
4921 -children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-courses",httpMethod:"POST",attributes:e})})})})}XB.propTypes={};const BB=(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)}),EB=(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)}),FB=(t,e="")=>({color:(0,Hs.qD)(t?.wish_icon_color),...(0,d.qD)(t?.wish_icon_background,"background",e)}),qB=(t,e="")=>({color:(0,Hs.qD)(t?.wish_icon_hover_color),...(0,d.a9)(t?.wish_icon_background,"background",e)}),$B=(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)}},GB=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"
4922 -}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}},ZB=(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)}},KB=(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)}},JB=(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 QB(t){
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){
4923 4924 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,
4924 4925 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,
4925 4926 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"),
4926 4927 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,
@@ -4926,14 +4927,14 @@
4926 4927 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 4928 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,
4928 4929 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,
4929 4930 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,
4930 -M.xV)(YB.UU,"","academy_lms")&&(0,o.registerBlockType)(YB.UU,{title:(0,L.__)("Courses","ablocks"),attributes:YB.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
4931 -;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",$B(i),$B(i,"Tablet"),$B(i,"Mobile"),e(t=>$B(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",GB(i),GB(i,"Tablet"),GB(i,"Mobile"),e(t=>GB(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=>({
4932 -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",ZB(i),ZB(i,"Tablet"),ZB(i,"Mobile"),e(t=>ZB(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)),
4933 -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",KB(i,"Tablet"),KB(i,"Tablet"),KB(i,"Mobile"),e(t=>KB(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,
4934 -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",BB(i),BB(i,"Tablet"),BB(i,"Tablet"),e(t=>BB(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",EB(i),EB(i,"Tablet"),EB(i,"Tablet"),e(t=>EB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price",JB(i),JB(i,"Tablet"),JB(i,"Mobile"),e(t=>JB(i,t))),
4935 -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",FB(i),FB(i,"Tablet"),FB(i,"Mobile"),e(t=>FB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist:hover",qB(i),qB(i,"Tablet"),qB(i,"Mobile"),e(t=>qB(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)(OB,{academyTerms:y,...t}),(0,I.jsx)(XB,{...t})]})},save:()=>null}),QB.propTypes={};const tE={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",
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",
4936 4937 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"},
4937 4938 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:"",
4938 4939 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:"",
4939 4940 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:"",
@@ -4950,19 +4951,19 @@
4950 4951 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:{
4951 4952 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:"",
4952 4953 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:"",
4953 4954 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,
4954 -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 eE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:tE.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})})})})}
4955 -eE.propTypes={};const iE=(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)}),oE=(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)}),aE=t=>({color:(0,Hs.qD)(t?.inputFieldColor)}),lE=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e),...(0,y.a9)(t?.form_border,e)}),nE=t=>({color:(0,Hs.qD)(t?.login_btn_hover_color),background:(0,Hs.qD)(t?.login_btn_bg_hover_color)}),sE=(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)}},rE=(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)}
4956 -},bE=(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)}},cE=(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)}},dE=t=>({color:(0,Hs.qD)(t?.input_field_label_hover_color)});function uE(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,{
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,{
4957 4958 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,
4958 4959 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,
4959 4960 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"),
4960 -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)(tE.UU,"","academy_lms")&&(0,o.registerBlockType)(tE.UU,{title:(0,L.__)("Login Form","ablocks"),attributes:tE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){
4961 -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",sE(i),sE(i,"Tablet"),sE(i,"Mobile"),e(t=>sE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button:hover",nE(i),nE(i),nE(i),e(t=>nE(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",bE(i),bE(i,"Tablet"),bE(i,"Mobile"),e(t=>bE(i,t))),
4962 -t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading ",rE(i),rE(i,"Tablet"),rE(i,"Mobile"),e(t=>rE(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",cE(i),cE(i,"Tablet"),cE(i,"Mobile"),e(t=>cE(i,t))),
4963 -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",dE(i),dE(i),dE(i),e(t=>dE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper",iE(i),iE(i,"Tablet"),iE(i,"Tablet"),e(t=>iE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input",oE(i),oE(i,"Tablet"),oE(i,"Tablet"),e(t=>oE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input::placeholder",aE(i),aE(i),aE(i),e(t=>aE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper:hover",lE(i),lE(i,"Tablet"),lE(i,"Tablet"),e(t=>lE(i,t))),(0,
4964 -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)(QB,{...t}),(0,I.jsx)(eE,{...t})]})},save:()=>null}),uE.propTypes={};const pE={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:"",
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:"",
4965 4966 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:"",
4966 4967 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:"",
4967 4968 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:"",
4968 4969 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,
@@ -4979,14 +4980,14 @@
4979 4980 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:"",
4980 4981 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",
4981 4982 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",
4982 4983 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:""},
4983 -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function mE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:pE.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})})})})}mE.propTypes={};const hE=(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)}},gE=(t,e="")=>({color:(0,Hs.qD)(t?.form_button_hover_color),
4984 -background:(0,Hs.qD)(t?.form_button_hover_background),...(0,y.a9)(t?.form_button_border,e)}),fE=t=>({color:(0,Hs.qD)(t?.input_field_placeholder_color)}),yE=(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)}),TE=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),HE=(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)}),ME=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),xE=(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)}},kE=t=>({color:(0,Hs.qD)(t?.input_label_hover_color)});function vE(t){
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){
4985 4986 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,
4986 -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)(pE.UU,"","academy_lms")&&(0,o.registerBlockType)(pE.UU,{title:(0,L.__)("Student Registration Form","ablocks"),attributes:pE.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
4987 -;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",xE(i),xE(i,"Tablet"),xE(i,"Mobile"),e(t=>xE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label:hover",kE(i),kE(i),kE(i),e(t=>kE(i))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input",yE(i),yE(i,"Tablet"),yE(i,"Mobile"),e(t=>yE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input:hover",TE(i),TE(i,"Tablet"),TE(i,"Mobile"),e(t=>TE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input::placeholder",fE(i),fE(i),fE(i),e(t=>fE(i))),
4988 -t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button",hE(i),hE(i,"Tablet"),hE(i,"Mobile"),e(t=>hE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button:hover",gE(i),gE(i,"Tablet"),gE(i,"Mobile"),e(t=>gE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form",HE(i),HE(i,"Tablet"),HE(i,"Mobile"),e(t=>HE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",ME(i),ME(i,"Tablet"),ME(i,"Mobile"),e(t=>ME(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)(uE,{...t}),(0,I.jsx)(mE,{...t})]})},save:()=>null}),vE.propTypes={};const _E={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"},
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"},
4989 4990 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,
4990 4991 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:"",
4991 4992 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,
4992 4993 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,
@@ -4995,16 +4996,16 @@
4995 4996 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:"",
4996 4997 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:"",
4997 4998 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:"",
4998 4999 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:{
4999 -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 RE(t){
5000 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:_E.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})})})})}RE.propTypes={};const SE=(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)}},WE=(t,e="")=>({...(0,y.a9)(t?.search_border,e)}),PE=t=>({color:(0,Hs.qD)(t?.search_placeholder_color)}),UE=t=>({color:(0,Hs.qD)(t?.search_icon_color)});function jE(t){
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){
5001 5002 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,
5002 5003 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"),
5003 5004 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})]
5004 -}),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)(_E.UU,"","academy_lms")&&(0,o.registerBlockType)(_E.UU,{title:(0,L.__)("Course Searchbar","ablocks"),attributes:_E.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),
5005 -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",SE(i),SE(i,"Tablet"),SE(i,"Mobile"),e(t=>SE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input:hover",WE(i),WE(i,"Tablet"),WE(i,"Mobile"),e(t=>WE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input::placeholder",PE(i),PE(i),PE(i),e(t=>PE(i))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-icon span",UE(i),UE(i),UE(i),e(t=>UE(i))),(0,
5006 -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)(vE,{...t}),(0,I.jsx)(RE,{...t})]})},save:()=>null}),jE.propTypes={};const wE={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:"",
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:"",
5007 5008 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",
5008 5009 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:"",
5009 5010 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:{
5010 5011 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:"",
@@ -5021,13 +5022,13 @@
5021 5022 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:"",
5022 5023 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",
5023 5024 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",
5024 5025 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"}},
5025 -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function zE(t){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.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})})})})}zE.propTypes={};const CE=(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)}},AE=(t,e="")=>({color:(0,Hs.qD)(t?.form_button_hover_color),background:(0,Hs.qD)(t?.form_button_hover_background),...(0,
5026 -y.a9)(t?.form_button_border,e)}),LE=t=>({color:(0,Hs.qD)(t?.input_field_placeholder_color)}),DE=(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)}),NE=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),IE=(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)}),OE=(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 YE(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,
5027 -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)(wE.UU,"","academy_lms")&&(0,o.registerBlockType)(wE.UU,{title:(0,L.__)("Instructor Registration Form","ablocks"),attributes:wE.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),
5028 -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",OE(i),OE(i,"Tablet"),OE(i,"Mobile"),e(t=>OE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input",DE(i),DE(i,"Tablet"),DE(i,"Mobile"),e(t=>DE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input:hover",NE(i),NE(i,"Tablet"),NE(i,"Mobile"),e(t=>NE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input::placeholder",LE(i),LE(i),LE(i),e(t=>LE(i))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button",CE(i),CE(i,"Tablet"),CE(i,"Mobile"),e(t=>CE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button:hover",AE(i),AE(i,"Tablet"),AE(i,"Mobile"),e(t=>AE(i,t))),
5029 -t.addClassStyles("{{WRAPPER}} .academy-reg-form",IE(i),IE(i,"Tablet"),IE(i,"Mobile"),e(t=>IE(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-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)(jE,{...t}),(0,I.jsx)(zE,{...t})]})},save:()=>null}),YE.propTypes={};const XE={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:"",
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:"",
5030 5031 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:"",
5031 5032 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",
5032 5033 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:"",
5033 5034 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",
@@ -5035,16 +5036,16 @@
5035 5036 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:"",
5036 5037 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:"",
5037 5038 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:"",
5038 5039 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,
5039 -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 BE(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}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-pdf",httpMethod:"POST",attributes:e})})})})}function EE(t){
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){
5040 5041 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,
5041 5042 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,
5042 5043 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"),
5043 5044 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,
5044 5045 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",
5045 -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})]})]})})})}BE.propTypes={},(0,M.xV)(XE.UU,"","academy_lms")&&(0,
5046 -o.registerBlockType)(XE.UU,{title:(0,L.__)("PDF","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}=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)(YE,{...t}),(0,I.jsx)(BE,{...t})]})},save:()=>null}),EE.propTypes={};const FE={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",
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",
5047 5048 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",
5048 5049 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",
5049 5050 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",
5050 5051 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:"",
@@ -5065,17 +5066,17 @@
5065 5066 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:"",
5066 5067 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:"",
5067 5068 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:"",
5068 5069 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:{
5069 -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 qE(t){
5070 -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.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})})})})}qE.propTypes={};const $E=(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)}),GE=(t,e="")=>({background:(0,Hs.qD)(t?.form_background_hover_color),...(0,y.a9)(t?.form_border,e)}),ZE=(t,e="")=>{const i=(0,M.Zy)(t.label_typography,{weight:"400"
5071 -}),o=t.label_typographyGlobal?t.label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.label_color),...(0,U.qD)(i,e,o)}},KE=(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)}},JE=(t,e="")=>({...(0,y.a9)(t?.input_border,e)}),QE=(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)}},tF=(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)}),eF=(t,e="")=>{const i=(0,M.Zy)(t.form_title_typography,{weight:"400"
5072 -}),o=t.form_title_typographyGlobal?t.form_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_title_color),...(0,U.qD)(i,e,o)}},iF=(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)(FE.UU,"","academy_lms")&&(0,o.registerBlockType)(FE.UU,{title:(0,L.__)("Password Reset","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;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""
5073 -;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper",$E(i),$E(i,"Tablet"),$E(i,"Mobile"),e(t=>$E(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper:hover",GE(i),GE(i,"Tablet"),GE(i,"Mobile"),e(t=>GE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group label",ZE(i),ZE(i,"Tablet"),ZE(i,"Mobile"),e(t=>ZE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input",KE(i),KE(i,"Tablet"),KE(i,"Mobile"),e(t=>KE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input:hover",JE(i),JE(i,"Tablet"),JE(i,"Mobile"),e(t=>JE(i,t))),
5074 -t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button",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 button:hover",tF(i),tF(i,"Tablet"),tF(i,"Mobile"),e(t=>tF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper h2.academy-password-reset-form-heading",eF(i),eF(i,"Tablet"),eF(i,"Mobile"),e(t=>eF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form-info a",iF(i),iF(i,"Tablet"),iF(i,"Mobile"),e(t=>iF(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)(EE,{...t}),(0,I.jsx)(qE,{...t})]})},save:()=>null});var oF=i(53036);function aF(t){
5075 -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:oF.C$,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",
5076 -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:oF.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"),
5077 -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})]})})})})})})}aF.propTypes={};const lF={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:"",
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:"",
5078 5079 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",
5079 5080 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:"",
5080 5081 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:"",
5081 5082 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:"",
@@ -5084,50 +5085,50 @@
5084 5085 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:"",
5085 5086 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:"",
5086 5087 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",
5087 5088 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},
5088 -_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){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:lF.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-media",httpMethod:"POST",attributes:e})})})})}nF.propTypes={};const sF=(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,
5089 -unitDefaultValue:"%",property:"height",device:e})}},rF=(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)(lF.UU,"","academy_lms")&&(0,o.registerBlockType)(lF.UU,{title:(0,L.__)("Course Media","ablocks"),attributes:lF.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",sF(i),sF(i,"Tablet"),sF(i,"Mobile"),e(t=>sF(i,t))),
5090 -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 ",rF(i),rF(i,"Tablet"),rF(i,"Mobile"),e(t=>rF(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});var bF=i(41607);const cF=({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 dF(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})=>({
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})=>({
5091 5092 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,
5092 5093 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,
5093 5094 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,
5094 -L.__)("Posts Per Page","ablocks"),attributeValue:b,onChangeHandler:t=>{i({query:{...n,perPage:t}})}}),(0,I.jsx)(cF,{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",
5095 -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 uF="ablocks/loop-builder",pF=[{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",{
5096 -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 mF({attributes:t,setAttributes:e}){
5097 -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)(mF),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=pF.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",{
5098 -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:pF.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 hF(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:uF,attributes:e,children:(0,I.jsx)(mF,{attributes:e,setAttributes:i})})})}(0,o.registerBlockType)(uF,{attributes:bF.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",{
5099 -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)(dF,{...t}),(0,I.jsx)(hF,{...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:uF,attributes:e,children:(0,I.jsx)(i,{...a})})})}});var gF=i(62882);function fF(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,
5100 -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:gF.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:gF.Qk,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,
5101 -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 yF="ablocks/loop-template";function TF(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=TF(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}const HF=function(){for(var t,e,i=0,o="",a=arguments.length;i<a;i++)(t=arguments[i])&&(e=TF(t))&&(o&&(o+=" "),o+=e);return o},MF=(0,I.jsx)(zc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)(zc.Path,{
5102 -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"})}),xF=(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"})}),kF=[["ablocks/heading"],["ablocks/paragraph"],["ablocks/image"]];function vF({classList:t}){const e=(0,D.useInnerBlocksProps)({className:HF("ablocks-loop-template-item",t)},{template:kF,__unstableDisableLayoutClassNames:!0});return(0,I.jsx)("div",{...e})}const _F=(0,Yt.memo)(function({blocks:t,blockContextId:e,classList:i,isHidden:o,setActiveBlockContextId:a}){const l=(0,D.__experimentalUseBlockPreview)({blocks:t,props:{className:HF("ablocks-loop-template-item",i)}
5103 -}),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 RF({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])=>{
5104 -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:HF(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")})
5105 -;const U=e=>t({layout:{...H,...e}}),j=[{icon:MF,title:(0,L._x)("List view","Post template block display setting","ablocks"),onClick:()=>U({type:"default"}),isActive:"default"===x||"constrained"===x},{icon:xF,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)(vF,{classList:t.classList}):null,(0,I.jsx)(_F,{blocks:S,blockContextId:t.postId,classList:t.classList,setActiveBlockContextId:_,isHidden:t.postId===(v||W[0]?.postId)})]},t.postId))})]})}function SF(t){const{attributes:e,clientId:i,context:o,setAttributes:a,__unstableLayoutClassNames:l}=t,{block_id:n}=e;return(0,I.jsx)("div",{
5106 -className:"ablocks-loop-template-child ablocks-loop-template-child__editor",children:(0,I.jsx)(sR,{blockId:n,name:yF,attributes:e,children:(0,I.jsx)(RF,{clientId:i,context:o,setAttributes:a,attributes:e,__unstableLayoutClassNames:l})})})}SF.propTypes={};const WF=(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},PF=(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)}
5107 -},UF=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function jF(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:yF,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}jF.propTypes={},jF.defaultProps={};const wF=(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)(yF,{attributes:gF.Ay,icon:wF,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
5108 -}),o({gridColumns:""})}},[]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .wp-block-ablocks-loop-template ",WF(i),WF(i,"Tablet"),WF(i,"Mobile"),t.customDeviceMap(t=>WF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item",PF(i),PF(i,"Tablet"),PF(i,"Mobile"),t.customDeviceMap(t=>PF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item:hover",UF(i),UF(i,"Tablet"),UF(i,"Mobile"),t.customDeviceMap(t=>UF(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)(SF,{...t})]})},save:jF});var zF=i(5230);function CF(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=>{
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=>{
5109 5110 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,
5110 5111 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",
5111 5112 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"}],
5112 -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:zF.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,
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,
5113 5114 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,{
5114 -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})]})})})]})]})}CF.propTypes={},CF.defaultProps={};const AF="ablocks/loop-filter";function LF(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:AF,attributes:e,children:o.length>0?o.map((t,e)=>{const o=n===t.value;return(0,I.jsx)("span",{
5115 -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")})})})}LF.propTypes={},LF.defaultProps={};const DF=(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},NF=(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"})
5116 -;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)}},IF=(t,e="")=>{const i=(0,M.Zy)(t.filterBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},VF=(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)}},OF=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};(0,o.registerBlockType)(AF,{attributes:zF.A,icon:wF,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}}",DF(i),DF(i,"Tablet"),DF(i,"Mobile"),t.customDeviceMap(t=>DF(i,t))),
5117 -t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter",NF(i),NF(i,"Tablet"),NF(i,"Mobile"),t.customDeviceMap(t=>NF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter:hover",IF(i),IF(i,"Tablet"),IF(i,"Mobile"),t.customDeviceMap(t=>IF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active",VF(i),VF(i,"Tablet"),VF(i,"Mobile"),t.customDeviceMap(t=>VF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active:hover",OF(i),OF(i,"Tablet"),OF(i,"Mobile"),t.customDeviceMap(t=>OF(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(CF,{...t}),(0,I.jsx)(LF,{...t})]})},save:()=>null});var YF=i(4788);function XF(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,{
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,{
5118 5119 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",
5119 -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:YF.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"),
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"),
5120 5121 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,
5121 -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})]})})})})]})})}XF.propTypes={},XF.defaultProps={};const BF="ablocks/loop-load-more";function EF(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:BF,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})})})}
5122 -EF.propTypes={},EF.defaultProps={};const FF=(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},qF=(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)}},$F=(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,
5123 -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)(BF,{attributes:YF.A,icon:wF,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}}",FF(i),FF(i,"Tablet"),FF(i,"Mobile"),t.customDeviceMap(t=>FF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text",qF(i),qF(i,"Tablet"),qF(i,"Mobile"),t.customDeviceMap(t=>qF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text:hover",$F(i),$F(i,"Tablet"),$F(i,"Mobile"),t.customDeviceMap(t=>$F(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)(EF,{...t})]})},save:()=>null});const GF=(0,Eb.D$)({attributeName:"barHeightSize",attributeObjectKey:"value",
5124 -isResponsive:!0,defaultValue:40,defaultValueTablet:30,defaultValueMobile:30,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),ZF=((0,Zt.D$)("alignment",!0,{value:"center",valueTablet:"",valueMobile:""}),(0,PY.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"}]),KF=[{value:"bar",label:(0,L.__)("Bar","ablocks")},{value:"circle",label:(0,L.__)("Circle","ablocks")}],JF=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],QF=[{value:"entire_page",label:(0,L.__)("Entire Page","ablocks")},{value:"selector",label:(0,L.__)("Selector","ablocks")}];function tq(t){
5125 -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:ZF,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Wb,{label:(0,L.__)("Layout","ablocks"),setAttributes:i,attributeName:"layout",attributeValue:o,options:KF,onChangeHandler:t=>{
5126 -"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:JF,isSearch:!0,attributeName:"direction",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Progress relative to","ablocks"),options:QF,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,{
5127 -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:GF}),(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,
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,
5128 5129 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})]})]})})})}
5129 -tq.propTypes={},tq.defaultProps={};const eq={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:{
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:{
5130 5131 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",
5131 5132 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:"",
5132 5133 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",
5133 5134 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:"",
@@ -5137,13 +5138,13 @@
5137 5138 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:"",
5138 5139 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",
5139 5140 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",
5140 5141 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:{
5141 -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"}}}},iq=({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%"})]})})},oq=({attributes:t})=>{
5142 -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)(iq,{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 aq(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){
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){
5143 5144 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
5144 -;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:eq.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)(oq,{attributes:e})})})}aq.propTypes={};const lq=(t,e="")=>{let i;switch(t?.alignment?.["value"+e]||"center"){case"left":default:i="flex-start";break;case"center":i="center";break;case"right":
5145 -i="flex-end"}return{display:"flex","justify-content":i}},nq=(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)}},sq=(t,e="")=>{const i=(0,M.Zy)(t?.barBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},rq=(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)}},bq={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"},
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"},
5146 5147 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:"",
5147 5148 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",
5148 5149 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:"",
5149 5150 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:"",
@@ -5153,15 +5154,15 @@
5153 5154 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:"",
5154 5155 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:"",
5155 5156 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:"",
5156 5157 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:"",
5157 -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)(eq.UU)&&(0,o.registerBlockType)(eq.UU,{attributes:eq.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):{}
5158 -;return t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle",lq(i),lq(i,"Tablet"),lq(i,"Mobile"),e(t=>lq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress__text",rq(i),rq(i,"Tablet"),rq(i,"Mobile"),e(t=>rq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track ",nq(i),nq(i,"Tablet"),nq(i,"Mobile"),e(t=>nq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track:hover",sq(i),sq(i,"Tablet"),sq(i,"Mobile"),e(t=>sq(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)({
5159 -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)(tq,{...t}),(0,I.jsx)(aq,{...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:eq.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)(iq,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,
5160 -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:bq.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:bq.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)(iq,{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%"})})})})})}}]});const cq=({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))})})},dq=(0,Eb.D$)({attributeName:"containerWidth",defaultValue:80,copyStyle:!0});function uq(t){
5162 -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)(cq,{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,
5163 -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:dq}),(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,uq.propTypes={};const pq={UU:"ablocks/academy-certificate",uK:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},pageSize:{type:"string",default:"A4"},
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"},
5164 5165 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:"",
5165 5166 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:"",
5166 5167 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:"",
5167 5168 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:"",
@@ -5168,15 +5169,15 @@
5168 5169 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:"",
5169 5170 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:"",
5170 5171 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:"",
5171 5172 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:"",
5172 -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 mq(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,
5173 -I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:pq.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})})})})})}mq.propTypes={};const hq=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",
5174 -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},gq=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},fq=(t,e="")=>{const i={...(0,c.qD)(t?.certificate_padding,"padding",e)};return t?.containerWidth&&(i.width=`${t?.containerWidth}%`),i};function yq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:pq.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",
5175 -children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}yq.propTypes={},((0,M.xV)(pq.UU,"","academy_lms")||(0,M.xV)(pq.UU,"","quizpress"))&&(0,o.registerBlockType)(pq.UU,{title:(0,L.__)("Certificate","ablocks"),attributes:pq.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)
5176 -;c.addClassStyles("{{WRAPPER}}",gq(i),gq(i),gq(i),c.customDeviceMap(t=>gq(i))),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image",hq(i),hq(i),hq(i),c.customDeviceMap(t=>hq(i))),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image-inner-block",fq(i),fq(i,"Tablet"),fq(i,"Mobile"),c.customDeviceMap(t=>fq(i,t)));const d=c.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(uq,{...t}),(0,I.jsx)(mq,{...t})]})},save:yq}),(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 Tq={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":{
5177 -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 Hq(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"),
5178 -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:Tq,attributes:e})]})})})})}Hq.propTypes={};const Mq={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:"",
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:"",
5179 5180 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:""}},
5180 5181 _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:"",
5181 5182 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:"",
5182 5183 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:"",
@@ -5183,12 +5184,12 @@
5183 5184 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:"",
5184 5185 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:"",
5185 5186 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:"",
5186 5187 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,
5187 -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)(tP,{blockId:i,name:Mq.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]"})})})}xq.propTypes={};const kq=(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)}
5188 -;return a.width="100%",a.display="block",a};function vq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:Mq.UU,attributes:e,children:(0,I.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"#{{verification_id}}"})})}vq.propTypes={},(0,M.xV)(Mq.UU,Mq.$t[0],"academy_lms")&&(0,o.registerBlockType)(Mq.UU,{title:(0,L.__)("Certificate ID","ablocks"),attributes:Mq.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",kq(i),kq(i,"Tablet"),kq(i,"Mobile"),s.customDeviceMap(t=>kq(i,t)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(Hq,{...t}),(0,I.jsx)(xq,{...t})]})},save:vq});const _q=[{
5189 -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"}],Rq={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",
5190 -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 Sq(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)(
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)(
5191 5192 // translators: %1$s learner, %2$s: quiz title, %3$s completion date, %4$s total questions,
5192 5193 // translators: %1$s learner, %2$s: quiz title, %3$s completion date, %4$s total questions,
5193 5194 (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)(
5194 5195 // translators: %1$s learner, %2$s: course title, %3$s instructor, %4$s course place, %5$s completion date, %6$s verification ID
@@ -5196,9 +5197,9 @@
5196 5197 (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)(
5197 5198 // translators: %s verification ID
5198 5199 // translators: %s verification ID
5199 5200 (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"),
5200 -attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:Rq,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})]})})})})})})}Sq.propTypes={};const Wq={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:"",
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:"",
5201 5202 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:"",
5202 5203 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:"",
5203 5204 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:"",
5204 5205 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:"",
@@ -5206,16 +5207,16 @@
5206 5207 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:"",
5207 5208 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:"",
5208 5209 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",
5209 5210 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},
5210 -_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,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:_q})}),(0,I.jsx)(tP,{blockId:o,name:Wq.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")})})]})}Pq.propTypes={};const Uq=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),jq=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0,U.qD)(i,e,o),...(0,
5211 -Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)};return a.margin="0px",a.padding="0px",a};function wq(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:Wq.UU,attributes:e,children:(0,I.jsx)(D.RichText.Content,{tagName:o,className:"ablocks-block--certificate__heading-text",value:e.heading})})})}wq.propTypes={},((0,M.xV)(Wq.UU,Wq.$t[0],"academy_lms")||(0,M.xV)(Wq.UU,Wq.$t[0],"quizpress"))&&(0,o.registerBlockType)(Wq.UU,{title:(0,L.__)("Certificate Text","ablocks"),attributes:Wq.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}}",Uq(i),Uq(i,"Tablet"),Uq(i,"Mobile"),s.customDeviceMap(t=>Uq(i,t)));const r=jq(i);i?.textColor&&(r.color=i.textColor),
5212 -s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__heading-text",r,jq(i,"Tablet"),jq(i,"Mobile"),s.customDeviceMap(t=>jq(i,t)));const b=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(Sq,{...t}),(0,I.jsx)(Pq,{...t})]})},save:wq});var zq=i(81568);function Cq(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,
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,
5213 5214 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,
5214 5215 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,{
5215 5216 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,
5216 -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:zq.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,
5217 -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:zq.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})})})]})})]})]})})})}Cq.propTypes={};const Aq={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"},
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"},
5218 5219 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:"",
5219 5220 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",
5220 5221 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",
5221 5222 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:"",
@@ -5225,24 +5226,24 @@
5225 5226 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",
5226 5227 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:"",
5227 5228 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:"",
5228 5229 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",
5229 -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 Lq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:Aq.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{
5230 -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})})})})}Lq.propTypes={};const Dq=(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)}},Nq=(t,e="")=>({color:(0,Hs.qD)(t?.heading_color_hover)}),Iq=(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)}},Vq=(t,e="")=>({color:(0,Hs.qD)(t?.title_color_hover),background:(0,Hs.qD)(t?.title_bg_hover)}),Oq=(t,e="")=>{const i=(0,
5231 -M.Zy)(t?.contentTypography,{weight:"400"});return t.contentTypographyGlobal&&t.contentTypographyGlobal,{...(0,U.qD)(i,e,i),color:(0,Hs.qD)(t?.contentColor)}},Yq=(t,e="")=>({color:(0,Hs.qD)(t?.contentColorH)}),Xq=(t,e="")=>({background:(0,Hs.qD)(t?.lesson_list_bg)||"#fff"}),Bq=(t,e="")=>({background:(0,Hs.qD)(t?.lesson_list_hover)||"#fff"}),Eq=(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})}),Fq=(t,e="")=>({color:(0,Hs.qD)(t?.lock_icon_hover)}),qq=(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})}),$q=(t,e="")=>({color:(0,Hs.qD)(t?.read_icon_hover)});(0,M.xV)(Aq.UU,"","academy_lms")&&(0,o.registerBlockType)(Aq.UU,{title:(0,
5232 -L.__)("Course Curriculums","ablocks"),attributes:Aq.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",Dq(i,""),Dq(i,"Tablet"),Dq(i,"Mobile"),e(t=>Dq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title:hover",Nq(i,""),Nq(i,"Tablet"),Nq(i,"Mobile"),e(t=>Nq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title",Iq(i,""),Iq(i,"Tablet"),Iq(i,"Mobile"),e(t=>Iq(i,t))),
5233 -t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title:hover",Vq(i,""),Vq(i,"Tablet"),Vq(i,"Mobile"),e(t=>Vq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title",Oq(i,""),Oq(i,"Tablet"),Oq(i,"Mobile"),e(t=>Oq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title:hover",Yq(i,""),Yq(i,"Tablet"),Yq(i,"Mobile"),e(t=>Yq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item",Xq(i,""),Xq(i,"Tablet"),Xq(i,"Mobile"),e(t=>Xq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item:hover",Bq(i,""),Bq(i,"Tablet"),Bq(i,"Mobile"),e(t=>Bq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i",Eq(i,""),Eq(i,"Tablet"),Eq(i,"Mobile"),e(t=>Eq(i,t))),
5234 -t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i:hover",Fq(i,""),Fq(i,"Tablet"),Fq(i,"Mobile"),e(t=>Fq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",qq(i,""),qq(i,"Tablet"),qq(i,"Mobile"),e(t=>qq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",$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)(Cq,{...t}),(0,I.jsx)(Lq,{...t})]})},save:()=>null});var Gq=i(75799);function Zq(t){
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){
5235 5236 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,
5236 5237 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",
5237 5238 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,
5238 -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:Gq.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:Gq.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",
5239 -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:Gq.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,
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,
5240 5241 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,
5241 5242 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,
5242 5243 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,
5243 -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:Gq.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,
5244 -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})]})})]})})})]})})})}Zq.propTypes={};const Kq={UU:"ablocks/academy-course-reviews",uK:{block_id:{type:"string",
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",
5245 5246 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:{
5246 5247 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:"",
5247 5248 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:{
5248 5249 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:"",
@@ -5255,28 +5256,28 @@
5255 5256 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",
5256 5257 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:"",
5257 5258 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:"",
5258 5259 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",
5259 -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 Jq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:Kq.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{
5260 -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})})})})}Jq.propTypes={};const Qq=(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)}},t$=(t,e="")=>({color:(0,Hs.qD)(t?.heading_color_hover)}),e$=(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,
5261 -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})}},i$=(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})}},o$=(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)}},a$=(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})}),l$=(t,e="")=>({
5262 -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})}),n$=(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})}),s$=(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)}},r$=(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})}),b$=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...(0,
5263 -U.qD)(i,e,o),color:(0,Hs.qD)(t?.listColor)}},c$=(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})}),d$=(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})}),u$=(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})}),p$=(t,e="")=>({background:(0,Hs.qD)(t?.fillBg)||"#e7e7e7"}),m$=(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})
5264 -}),h$=(t,e="")=>({background:(0,Hs.qD)(t?.fillABg)||"#f4c150"}),g$=(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)(Kq.UU,"","academy_lms")&&(0,o.registerBlockType)(Kq.UU,{title:(0,L.__)("Course Reviews","ablocks"),attributes:Kq.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",Qq(i,""),Qq(i,"Tablet"),Qq(i,"Mobile"),e(t=>Qq(i,t))),
5265 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title:hover",t$(i,""),t$(i,"Tablet"),t$(i,"Mobile"),e(t=>t$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings",e$(i,""),e$(i,"Tablet"),e$(i,"Mobile"),e(t=>e$(i,t))),t.addClassStyles("{{WRAPPER}}.academy-single-course__content-item--feedback .academy-student-course-feedback-ratings:hover",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",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:hover",a$(i,""),a$(i,"Tablet"),a$(i,"Mobile"),e(t=>a$(i,t))),
5266 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon::before",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-html .academy-icon:hover::before",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-total",s$(i,""),s$(i,"Tablet"),s$(i,"Mobile"),e(t=>s$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total:hover",r$(i,""),r$(i,"Tablet"),r$(i,"Mobile"),e(t=>r$(i,t))),
5267 -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",b$(i,""),b$(i,"Tablet"),b$(i,"Mobile"),e(t=>b$(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: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",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-ratings-list-item .academy-icon",d$(i,""),d$(i,"Tablet"),d$(i,"Mobile"),e(t=>d$(i,t))),
5269 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon:hover",u$(i,""),u$(i,"Tablet"),u$(i,"Mobile"),e(t=>u$(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",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-ratings-list-item-fill",m$(i,""),m$(i,"Tablet"),m$(i,"Mobile"),e(t=>m$(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",h$(i,""),h$(i,"Tablet"),h$(i,"Mobile"),e(t=>h$(i,t))),
5270 -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",g$(i,""),g$(i,"Tablet"),g$(i,"Mobile"),e(t=>g$(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 f$=i(72045);function y$(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,
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,
5271 5272 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",
5272 -label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+Y]??"%")?100:1600,attributeDefaultValue:f$.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",
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",
5273 5274 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"),
5274 5275 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"),
5275 -min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:k,attributeName:"startSize",setAttributes:i,attributeDefaultValue:f$.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,
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,
5276 5277 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,
5277 5278 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,
5278 -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})]})]})})})}y$.propTypes={};const T$={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"},
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"},
5279 5280 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:"",
5280 5281 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:"",
5281 5282 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:"",
5282 5283 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:"",
@@ -5290,21 +5291,21 @@
5290 5291 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:"",
5291 5292 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",
5292 5293 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",
5293 5294 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",
5294 -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 H$(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},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{
5295 -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})})})})}H$.propTypes={};const M$=(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})}},x$=(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",
5296 -property:"transition-duration",device:e})}},k$=(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)}},v$=(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})}),_$=(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})}),R$=(t,e="")=>({color:(0,Hs.qD)(t?.starColorH)||"#f4c150"}),S$=(t,e="")=>{const i=(0,M.Zy)(t?.formTypography??[],{weight:"400"
5297 -}),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)}},W$=(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})}},P$=(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)}},U$=(t,e="")=>({color:(0,Hs.qD)(t?.formBtnColorH),background:(0,Hs.qD)(t?.formBtnBgH),...(0,
5298 -Eb.qD)({attributeValue:t?.formBtnT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function j$(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,
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,
5299 5300 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,
5300 5301 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,
5301 5302 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,
5302 5303 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,{
5303 -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)(T$.UU,"","academy_lms")&&(0,o.registerBlockType)(T$.UU,{title:(0,L.__)("Reviews Form","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)(()=>{
5304 -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",M$(i,""),M$(i,"Tablet"),M$(i,"Mobile"),e(t=>M$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form:hover,\n\t\t\t{{WRAPPER}} .academy-review-form--open-form .comment-respond:hover",x$(i,""),x$(i,"Tablet"),x$(i,"Mobile"),e(t=>x$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review",k$(i,""),k$(i,"Tablet"),k$(i,"Mobile"),e(t=>k$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review:hover",v$(i,""),v$(i,"Tablet"),v$(i,"Mobile"),e(t=>v$(i,t))),
5305 -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",_$(i,""),_$(i,"Tablet"),_$(i,"Mobile"),e(t=>_$(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",R$(i,""),R$(i,"Tablet"),R$(i,"Mobile"),e(t=>R$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea",S$(i,""),S$(i,"Tablet"),S$(i,"Mobile"),e(t=>S$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea:hover",W$(i,""),W$(i,"Tablet"),W$(i,"Mobile"),e(t=>W$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]",P$(i,""),P$(i,"Tablet"),P$(i,"Mobile"),e(t=>P$(i,t))),
5306 -t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]:hover",U$(i,""),U$(i,"Tablet"),U$(i,"Mobile"),e(t=>U$(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(y$,{...t}),(0,I.jsx)(H$,{...t})]})},save:()=>null}),j$.propTypes={};const w$={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:""},
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:""},
5307 5308 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:"",
5308 5309 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:{
5309 5310 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:{
5310 5311 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:{
@@ -5314,18 +5315,18 @@
5314 5315 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:"",
5315 5316 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:"",
5316 5317 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:"",
5317 5318 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:{
5318 -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:w$.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})})})})}z$.propTypes={};const C$=(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,
5319 -defaultValue:50,unitDefaultValue:"px",property:"width",device:e})}),A$=(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)}},L$=(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})}),D$=(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)}},N$=(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})}),I$=(t,e="")=>{const i=(0,M.Zy)(t?.desTypography??"",{weight:"400"
5320 -}),o=t.desTypographyGlobal?t.desTypographyGlobal:"";return{color:(0,Hs.qD)(t?.desColor)||"#111",...(0,U.qD)(i,e,o)}},V$=(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})}),O$=(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)}},Y$=(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})}),X$=(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})
5321 -}),B$=(t,e="")=>({color:(0,Hs.qD)(t?.btnTextColor)||"#f4c150"});function E$(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,
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,
5322 5323 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,
5323 5324 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,{
5324 -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)(w$.UU,"","academy_lms")&&(0,o.registerBlockType)(w$.UU,{title:(0,
5325 -L.__)("Review List","ablocks"),attributes:w$.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",C$(i,""),C$(i,"Tablet"),C$(i,"Mobile"),e(t=>C$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author",A$(i,""),A$(i,"Tablet"),A$(i,"Mobile"),e(t=>A$(i,t))),
5326 -t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author:hover",L$(i,""),L$(i,"Tablet"),L$(i,"Mobile"),e(t=>L$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date",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__published-date:hover",N$(i,""),N$(i,"Tablet"),N$(i,"Mobile"),e(t=>N$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p",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-description p:hover",V$(i,""),V$(i,"Tablet"),V$(i,"Mobile"),e(t=>V$(i,t))),
5327 -t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review_container",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-thumnail .academy-review_container:hover",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-thumnail .academy-group-star i",X$(i,""),X$(i,"Tablet"),X$(i,"Mobile"),e(t=>X$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i:hover",B$(i,""),B$(i,"Tablet"),B$(i,"Mobile"),e(t=>B$(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)(z$,{...t})]})},save:()=>null}),i(92731),E$.propTypes={};const F$={UU:"ablocks/academy-addition-info",uK:{block_id:{
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:{
5328 5329 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",
5329 5330 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",
5330 5331 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:"",
5331 5332 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:"",
@@ -5336,18 +5337,18 @@
5336 5337 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:"",
5337 5338 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",
5338 5339 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:"",
5339 5340 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:"",
5340 -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 q$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:F$.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,
5341 -weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-addition-info",httpMethod:"POST",attributes:e})})})})}q$.propTypes={};const $$=(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)}},G$=(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})}),Z$=(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)}},K$=(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",
5342 -property:"transition-duration",device:e})}),J$=(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)}},Q$=(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})}),tG=(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)}},eG=(t,e="")=>({color:(0,Hs.qD)(t?.activeColorH)||"#111"});(0,M.xV)(F$.UU,"","academy_lms")&&(0,o.registerBlockType)(F$.UU,{title:(0,L.__)("Addition Info","ablocks"),attributes:F$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){
5343 -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",$$(i,""),$$(i,"Tablet"),$$(i,"Mobile"),e(t=>$$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title:hover",G$(i,""),G$(i,"Tablet"),G$(i,"Mobile"),e(t=>G$(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",Z$(i,""),Z$(i,"Tablet"),Z$(i,"Mobile"),e(t=>Z$(i,t))),
5344 -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",K$(i,""),K$(i,"Tablet"),K$(i,"Mobile"),e(t=>K$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a",J$(i,""),J$(i,"Tablet"),J$(i,"Mobile"),e(t=>J$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a:hover",Q$(i,""),Q$(i,"Tablet"),Q$(i,"Mobile"),e(t=>Q$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active",tG(i,""),tG(i,"Tablet"),tG(i,"Mobile"),e(t=>tG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active:hover",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)(E$,{...t}),(0,I.jsx)(q$,{...t})]})},save:()=>null});var iG=i(37807);function oG(t){
5345 -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:iG.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:iG.Hy})]}),(0,I.jsxs)(V,{title:(0,L.__)("Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,
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,
5346 5347 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,
5347 -attributeValue:m,attributeName:"star_size",setAttributes:i,attributeDefaultValue:iG.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"),
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"),
5348 5349 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"),
5349 -isResponsive:!1,attributeName:"insColorH",attributeValue:T,setAttributes:i})})})]})]})})})}oG.propTypes={};const aG={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:"",
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:"",
5350 5351 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:{
5351 5352 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:"",
5352 5353 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:"",
5353 5354 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:"",
@@ -5355,16 +5356,16 @@
5355 5356 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:"",
5356 5357 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:"",
5357 5358 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:"",
5358 5359 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:"",
5359 -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 lG(t){
5360 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:aG.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})})})})}lG.propTypes={};const nG=(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",
5361 -property:"width",device:e})}),sG=(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)}},rG=(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})}),bG=(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)}},cG=(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})}),dG=(t,e="")=>{const i=(0,M.Zy)(t?.insTypography??[],{weight:"400"}),o=t.insTypographyGlobal?t.insTypographyGlobal:"";return{color:(0,
5362 -Hs.qD)(t?.insColor)||"#111",...(0,U.qD)(i,e,o)}};function uG(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
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
5363 5364 }),(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",
5364 -setAttributes:i})]})})]})]})})})}(0,M.xV)(aG.UU,"","academy_lms")&&(0,o.registerBlockType)(aG.UU,{title:(0,L.__)("Course Instructor","ablocks"),attributes:aG.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",nG(i,""),nG(i,"Tablet"),nG(i,"Mobile"),e(t=>nG(i,t))),
5365 -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",sG(i,""),sG(i,"Tablet"),sG(i,"Mobile"),e(t=>sG(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",rG(i,""),rG(i,"Tablet"),rG(i,"Mobile"),e(t=>rG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span",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__rating .academy-group-star .academy-icon:before",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-info__content .instructor-name a",dG(i,""),dG(i,"Tablet"),dG(i,"Mobile"),e(t=>dG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(oG,{...t}),(0,I.jsx)(lG,{...t})]})},save:()=>null}),uG.propTypes={};const pG={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:""},
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:""},
5367 5368 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",
5368 5369 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:"",
5369 5370 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:"",
5370 5371 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:"",
@@ -5372,17 +5373,17 @@
5372 5373 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:"",
5373 5374 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:"",
5374 5375 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,
5375 5376 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:"",
5376 -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 mG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:pG.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})})})})}
5377 -mG.propTypes={};const hG=(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)}},gG=(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})}),fG=(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)}},yG=(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 TG(t){
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){
5378 5379 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,{
5379 5380 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,
5380 5381 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,
5381 5382 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"),
5382 5383 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,
5383 -M.xV)(pG.UU,"","academy_lms")&&(0,o.registerBlockType)(pG.UU,{title:(0,L.__)("Course Description","ablocks"),attributes:pG.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",hG(i,""),hG(i,"Tablet"),hG(i,"Mobile"),e(t=>hG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title:hover",gG(i,""),gG(i,"Tablet"),gG(i,"Mobile"),e(t=>gG(i,t))),
5384 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description ",fG(i,""),fG(i,"Tablet"),fG(i,"Mobile"),e(t=>fG(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",yG(i,""),yG(i,"Tablet"),yG(i,"Mobile"),e(t=>yG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(uG,{...t}),(0,I.jsx)(mG,{...t})]})},save:()=>null}),i(61392),TG.propTypes={};const HG={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:{
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:{
5385 5386 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",
5386 5387 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:"",
5387 5388 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",
5388 5389 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:{
@@ -5393,23 +5394,23 @@
5393 5394 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:""}},
5394 5395 _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,
5395 5396 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:"",
5396 5397 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",
5397 -default:""}}};function MG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:HG.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})})})})}MG.propTypes={};const xG=(t,e="")=>({background:(0,Hs.qD)(t?.contentBg)||"#fff"}),kG=(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})
5398 -}),vG=(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)}},_G=(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)}},RG=(t,e="")=>({color:(0,Hs.qD)(t?.wishlistColor)||"#fff",background:(0,Hs.qD)(t?.wishlistBg)||"#7b68ee"}),SG=(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)(HG.UU,"","academy_lms")&&(0,o.registerBlockType)(HG.UU,{title:(0,L.__)("Enroll Content","ablocks"),attributes:HG.uK,icon:(0,
5399 -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",xG(i,""),xG(i,"Tablet"),xG(i,"Mobile"),e(t=>xG(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",kG(i,""),kG(i,"Tablet"),kG(i,"Mobile"),e(t=>kG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists li",vG(i,""),vG(i,"Tablet"),vG(i,"Mobile"),e(t=>vG(i,t))),
5400 -t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn",_G(i,""),_G(i,"Tablet"),_G(i,"Mobile"),e(t=>_G(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-course__wishlist",RG(i,""),RG(i,"Tablet"),RG(i,"Mobile"),e(t=>RG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn i.academy-icon",SG(i,""),SG(i,"Tablet"),SG(i,"Mobile"),e(t=>SG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TG,{...t}),(0,I.jsx)(MG,{...t})]})},save:()=>null});const WG=window.wp.plugins,PG=window.wp.editPost,UG=window.wp.keyboardShortcuts;var jG=i(14030)
5401 -;const wG=[...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"]
5402 -;M.W0?.enabled_block_copy_paste_style&&(0,Fr.KU)()&&(0,WG.registerPlugin)("ablocks-block-copy-paste-styles",{render:()=>{const{registerShortcut:t}=(0,r.useDispatch)(UG.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,UG.useShortcut)("ablocks/copy-styles",t=>{(0,jG._)(),t.preventDefault()}),(0,UG.useShortcut)("ablocks/paste-styles",t=>{(0,jG.G)(),t.preventDefault()}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(PG.PluginBlockSettingsMenuItem,{allowedBlocks:wG,icon:"admin-page",label:(0,L.__)("aBlocks Copy Styles","ablocks"),onClick:jG._}),(0,I.jsx)(PG.PluginBlockSettingsMenuItem,{allowedBlocks:wG,icon:"admin-appearance",label:(0,L.__)("aBlocks Paste Styles","ablocks"),onClick:jG.G})]})}
5403 -}),(0,WG.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)
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)
5404 5405 ;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")
5405 -;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 zG={border:"none",background:"var(--abpm-btn-bg, #f3f4f6)",borderRadius:6,width:30,height:30,cursor:"pointer",fontSize:14,flex:"none"},CG={height:34,padding:"0 8px",borderRadius:6,border:"1px solid var(--abpm-border, #dcdfe6)",boxSizing:"border-box"},AG=({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,
5406 -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:{...CG,flex:1}}),(0,I.jsx)("input",{type:"number",placeholder:"–",value:t.minWidth??"",onChange:t=>o(l,"minWidth",t.target.value),style:{...CG,width:90}}),(0,I.jsx)("input",{type:"number",placeholder:"–",
5407 -value:(n=t,void 0!==n.maxWidth&&""!==n.maxWidth?n.maxWidth:n.width??""),onChange:t=>o(l,"maxWidth",t.target.value),style:{...CG,width:90}}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Move up","ablocks"),disabled:0===l,onClick:()=>a(l,-1),style:{...zG,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:{...zG,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:{...zG,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,
5408 -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")})]})},LG={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"}},DG=t=>(0,
5409 -r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t);(0,WG.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:LG.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:LG.item(o===t.id),title:e?`${t.label} (${e})`:t.label,onClick:()=>(t=>{$.includes(t.id)?((0,r.dispatch)(M.rb).setCustomDevice(null),DG(t.id)):(DG("Desktop"),(0,r.dispatch)(M.rb).setCustomDevice(t.id))})(t),children:$.includes(t.id)?(0,
5410 -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:LG.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,
5411 -L.__)("Responsive Breakpoints","ablocks"),onRequestClose:()=>b(!1),className:"ablocks-bp-modal",children:[(0,I.jsx)(AG,{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":{
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":{
5412 5413 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={
5413 5414 ...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)
5414 5415 ;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":
5415 5416 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":{
@@ -5415,44 +5416,44 @@
5415 5416 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 5417 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||{},
5417 5418 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={
5418 5419 ...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":{
5419 -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 NG=({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})=>{
5420 -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))})]})},IG={title:Y().string,subtitle:Y().string,largeModalMarginTop:Y().string,isOpen:Y().bool,isEnabledHeader:Y().bool,
5421 -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 VG({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
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
5422 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]})]})})})}
5423 -document.getElementById("ablockswrap")?aw().setAppElement("#ablockswrap"):document.getElementById("ablocksLessonsWrap")?aw().setAppElement("#ablocksLessonsWrap"):document.getElementById("ablocksFrontendDashWrap")?aw().setAppElement("#ablocksFrontendDashWrap"):document.getElementById("ablocksFrontendModalWrap")&&aw().setAppElement("#ablocksFrontendModalWrap"),VG.propTypes=IG;const OG=({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)(VG,{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",{
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",{
5424 5425 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,
5425 -L.__)("Import Now","ablocks"):(0,L.__)("Install & activate","ablocks")})})]})]});var YG=i(31921);const XG={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},BG=({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),
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),
5426 5427 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,
5427 -I.jsx)("span",{className:"ablocks-pro-badge",children:(0,L.__)("PRO","ablocks")})]})};BG.propTypes=XG;const EG=BG,FG=({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)(EG,{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)(YG.LazyLoadImage,{
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,{
5428 5429 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":""),
5429 5430 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)},
5430 -className:"ablocks-demo-import-btn--import-theme",children:t?.currentIndex===r?(0,I.jsx)(N.Spinner,{}):(0,L.__)("Import Theme","ablocks")}),(0,I.jsx)(EG,{label:(0,L.__)("Live Preview","ablocks"),type:"link",target:"_blank",link:o?.demo_url,size:"md",suffix:"live-preview"})]})})]})]})]})},qG={placeholder:Y().string,onSearchHandler:Y().func};function $G({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(""))},
5431 -className:"ablocks-search-component__control",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]})})}$G.propTypes=qG;const GG=({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)($G,{placeholder:(0,L.sprintf)(/* translators: %s: selected tab name (e.g. "templates") */ /* translators: %s: selected tab name (e.g. "templates") */
5432 -(0,L.__)("Search %s…","ablocks"),e.toLowerCase()),defaultValue:a,onSearchHandler:t=>{s(t.trim()),l(t.trim())}})]}),ZG=({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)({
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)({
5433 5434 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){
5434 5435 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)(
5435 5436 // translators: %s: selectedTab
5436 5437 // translators: %s: selectedTab
5437 -(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)(GG,{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)(FG,{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,
5438 -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)(EG,{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
5439 -})}}),(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)(OG,{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")})]})},KG={totalItems:Y().number,currentPageNumber:Y().number,fetchHandler:Y().func,rowsPerPage:Y().number},JG=({totalItems:t=0,currentPageNumber:e=1,fetchHandler:i=()=>{},rowsPerPage:o=10})=>{const[l,n]=(0,
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,
5440 5441 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,
5441 5442 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)},
5442 5443 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"})]}),
5443 -onClick:()=>{u(b.length)}})]})]})};JG.propTypes=KG;const QG=JG,tZ=[{label:(0,L.__)("Pattern","ablocks"),value:"pattern"},{label:(0,L.__)("Template","ablocks"),value:"template"},{label:(0,L.__)("Page","ablocks"),value:"page"}],eZ=(iZ=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,
5444 -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)(NG,{showSnackbar:R,selectedTab:o,selectedCategory:n,setSelectedCategory:s,selectedType:b,setSelectedType:c,setSearchTerm:u,setPaginationData:H}),(0,I.jsx)(ZG,{tabs:tZ,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)(QG,{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,
5445 -I.jsx)(N.Spinner,{})}):(0,I.jsx)(iZ,{...t})});var iZ;(0,WG.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)(VG,{suffix:"ablocks-demo-importer",isOpen:t,
5446 -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)(EG,{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)(eZ,{setIsOpen:e,isSyncLoading:i})]})})}});const oZ=({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,
5447 -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})]})},aZ=[{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},{
5448 -label:(0,L.__)("12","ablocks"),value:12}],lZ=((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"}]),nZ=[{label:(0,L.__)("Descending","ablocks"),value:"DESC"},{label:(0,L.__)("Ascending","ablocks"),value:"ASC"}];function sZ(t){
5449 -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)(oZ,{type:"include",...U})},{title:(0,L.__)("Exclude","ablocks"),name:"exclude",render:(0,I.jsx)(oZ,{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,{
5450 -options:aZ,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:lZ,label:(0,L.__)("Order By","ablocks"),attributeValue:s,attributeName:"order_by",setAttributes:i}),(0,I.jsx)(Ut,{options:nZ,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
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
5451 5452 }),(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,
5452 5453 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,
5453 5454 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
5454 -}),(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})]})})]})]})})})}sZ.propTypes={};const rZ={UU:"ablocks/storeengine-products",uK:{block_id:{type:"string",default:""},products_ids:{type:"array",default:[]},products_categories:{type:"array",default:[]},products_tags:{
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:{
5455 5456 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:""},
5456 5457 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:"",
5457 5458 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",
5458 5459 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",
@@ -5473,11 +5474,11 @@
5473 5474 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:""}},
5474 5475 _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,
5475 5476 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:"",
5476 5477 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,
5477 -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 bZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:rZ.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,
5478 -I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-products",httpMethod:"POST",attributes:e})})})})}bZ.propTypes={};const cZ=(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)}),dZ=(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)}),uZ=(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)}},pZ=(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)}
5479 -},mZ=(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})}},hZ=(t,e="")=>({color:(0,Hs.qD)(t.cart_button_text_hover_color),background:(0,Hs.qD)(t?.cart_button_hover_color)});function gZ(t){
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){
5480 5481 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,
5481 5482 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,
5482 5483 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,
5483 5484 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"),
@@ -5482,12 +5483,12 @@
5482 5483 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,
5483 5484 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"),
5484 5485 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:_,
5485 5486 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
5486 -}),(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)(rZ.UU,"","storeengine")&&(0,o.registerBlockType)(rZ.UU,{title:(0,L.__)("Products","ablocks"),attributes:rZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),
5487 -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",cZ(i),cZ(i,"Tablet"),cZ(i,"Mobile"),t.customDeviceMap(t=>cZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product:hover",dZ(i),dZ(i,"Tablet"),dZ(i,"Mobile"),t.customDeviceMap(t=>dZ(i,t))),
5488 -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 ",uZ(i),uZ(i,"Tablet"),uZ(i,"Mobile"),t.customDeviceMap(t=>uZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-ajax__amount .storeengine-product__simple-price",pZ(i),pZ(i,"Tablet"),pZ(i,"Mobile"),t.customDeviceMap(t=>pZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn",mZ(i),mZ(i,"Tablet"),mZ(i,"Mobile"),t.customDeviceMap(t=>mZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn:hover",hZ(i),hZ(i,"Tablet"),hZ(i,"Mobile"),t.customDeviceMap(t=>hZ(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,
5489 -I.jsx)(sZ,{storeEngineTerms:s,...t}),(0,I.jsx)(bZ,{...t})]})},save:()=>null}),gZ.propTypes={};const fZ={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",
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",
5490 5491 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",
5491 5492 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:"",
5492 5493 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:"",
5493 5494 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:"",
@@ -5503,17 +5504,17 @@
5503 5504 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:"",
5504 5505 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:"",
5505 5506 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:"",
5506 5507 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",
5507 -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 yZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:fZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,
5508 -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})})})})}yZ.propTypes={};const TZ=(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)}),HZ=(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)}),MZ=t=>({color:(0,Hs.qD)(t?.inputFieldColor)}),xZ=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e)}),kZ=t=>({color:(0,Hs.qD)(t?.login_btn_hover_color),background:(0,Hs.qD)(t?.login_btn_bg_hover_color)}),vZ=(t,e="")=>{const i=(0,M.Zy)(t.login_btn_typography,{weight:"400"
5509 -}),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)}},_Z=(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)}},RZ=(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)}},SZ=(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)}},WZ=t=>({color:(0,Hs.qD)(t?.input_field_label_hover_color)});function PZ(t){
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){
5510 5511 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,
5511 5512 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,
5512 5513 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,
5513 -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)(fZ.UU,"","storeengine")&&(0,o.registerBlockType)(fZ.UU,{title:(0,L.__)("Login Form","ablocks"),attributes:fZ.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",vZ(i),vZ(i,"Tablet"),vZ(i,"Mobile"),t.customDeviceMap(t=>vZ(i,t))),
5514 -t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button:hover",kZ(i),kZ(i),kZ(i),t.customDeviceMap(t=>kZ(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",RZ(i),RZ(i,"Tablet"),RZ(i,"Mobile"),t.customDeviceMap(t=>RZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading",_Z(i),_Z(i,"Tablet"),_Z(i,"Mobile"),t.customDeviceMap(t=>_Z(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",SZ(i),SZ(i,"Tablet"),SZ(i,"Mobile"),t.customDeviceMap(t=>SZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label:hover ",WZ(i),WZ(i),WZ(i),t.customDeviceMap(t=>WZ(i))),
5515 -t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper",TZ(i),TZ(i,"Tablet"),TZ(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper:hover",xZ(i),xZ(i,"Tablet"),xZ(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input",HZ(i),HZ(i,"Tablet"),HZ(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input::placeholder",MZ(i),MZ(i),MZ(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)(gZ,{...t}),(0,I.jsx)(yZ,{...t})]})},save:()=>null}),PZ.propTypes={};const UZ={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:{
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:{
5516 5517 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",
5517 5518 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:"",
5518 5519 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",
5519 5520 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:"%",
@@ -5523,16 +5524,16 @@
5523 5524 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:"",
5524 5525 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:"",
5525 5526 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",
5526 5527 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,
5527 -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)(tP,{blockId:i,name:UZ.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},{
5528 -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})})})})}jZ.propTypes={};const wZ=(t,e="")=>({background:(0,Hs.qD)(t?.tableBackground)}),zZ=(t,e="")=>({background:(0,Hs.qD)(t?.tableHeaderBackground)}),CZ=(t,e="")=>{const i=(0,M.Zy)(t?.tableHeaderTypography,{"font-weight":"400"}),o=t.tableHeaderTypographyGlobal?t.tableHeaderTypographyGlobal:"";return{...(0,U.qD)(i,e,o)}},AZ=(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)}},LZ=(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)}},DZ=(t,e="")=>{
5529 -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)(UZ.UU,"","storeengine")&&(0,o.registerBlockType)(UZ.UU,{title:(0,L.__)("Cart List","ablocks"),attributes:UZ.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",wZ(i),wZ(i,"Tablet"),wZ(i,"Mobile"),t.customDeviceMap(t=>wZ(i,t))),
5530 -t.addClassStyles("{{WRAPPER}} .storeengine-cart-table .storeengine-cart-table__head tr",zZ(i),zZ(i,"Tablet"),zZ(i,"Mobile"),t.customDeviceMap(t=>zZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__head tr th",CZ(i),CZ(i,"Tablet"),CZ(i,"Mobile"),t.customDeviceMap(t=>CZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product .storeengine-cart-product__content .storeengine-cart-product-title a",AZ(i),AZ(i,"Tablet"),AZ(i,"Mobile"),t.customDeviceMap(t=>AZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product__content .storeengine-cart-product-price",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__body-td .storeengine-price bdi",DZ(i),DZ(i,"Tablet"),DZ(i,"Mobile"),t.customDeviceMap(t=>DZ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(PZ,{...t}),(0,
5531 -I.jsx)(jZ,{...t})]})},save:()=>null});var NZ=i(78696);function IZ(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"),
5532 -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:NZ.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:NZ.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,
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,
5533 5534 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,
5534 -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})]})]})})})}IZ.propTypes={};const VZ={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:""},
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:""},
5535 5536 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",
5536 5537 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,
5537 5538 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:"",
5538 5539 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:"",
@@ -5546,14 +5547,14 @@
5546 5547 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:"",
5547 5548 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:"",
5548 5549 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",
5549 5550 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",
5550 -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 OZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:VZ.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})})})})}OZ.propTypes={};const YZ=(t,e="")=>{
5551 -const i={},{formAlignment:o}=t;return""!==t.direction&&(i["flex-direction"]=t.direction),o[`value${e}`]&&(i["justify-content"]=o[`value${e}`]),i},XZ=(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)}},BZ=(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 EZ(t){
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){
5552 5553 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,{
5553 -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)(VZ.UU,"","storeengine")&&(0,
5554 -o.registerBlockType)(VZ.UU,{title:(0,L.__)("Coupon Form","ablocks"),attributes:VZ.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",YZ(i),YZ(i,"Tablet"),YZ(i,"Mobile"),t.customDeviceMap(t=>YZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=text]",XZ(i),XZ(i,"Tablet"),XZ(i,"Mobile"),t.customDeviceMap(t=>XZ(i,t))),
5555 -t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=submit]",BZ(i),BZ(i,"Tablet"),BZ(i,"Mobile"),t.customDeviceMap(t=>BZ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(IZ,{...t}),(0,I.jsx)(OZ,{...t})]})},save:()=>null}),EZ.propTypes={};const FZ={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:"",
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:"",
5556 5557 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:"",
5557 5558 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:"",
5558 5559 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:"",
5559 5560 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:"",
@@ -5562,16 +5563,16 @@
5562 5563 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:"",
5563 5564 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:"",
5564 5565 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:"",
5565 5566 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",
5566 -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 qZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:FZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,
5567 -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})})})})}qZ.propTypes={};const $Z=(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)(FZ.UU,"","storeengine")&&(0,o.registerBlockType)(FZ.UU,{title:(0,
5568 -L.__)("Product Filter","ablocks"),attributes:FZ.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",$Z(i),$Z(i,"Tablet"),$Z(i,"Mobile"),t.customDeviceMap(t=>$Z(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(EZ,{...t}),(0,I.jsx)(qZ,{...t})]})},save:()=>null});var GZ=i(53490);function ZZ(t){
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){
5569 5570 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,
5570 5571 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,
5571 5572 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,
5572 -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:GZ.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"),
5573 -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})]})})]})]})})})}ZZ.propTypes={};const KZ={UU:"ablocks/storeengine-checkout-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColor:{type:"string",default:""},titleColorH:{
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:{
5574 5575 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",
5575 5576 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:"",
5576 5577 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:"",
5577 5578 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:"",
@@ -5585,16 +5586,16 @@
5585 5586 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:"",
5586 5587 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:"",
5587 5588 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:"",
5588 5589 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",
5589 -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 JZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:KZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,
5590 -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})})})})}JZ.propTypes={};const QZ=(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)}},tK=(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)}},eK=(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,
5591 -y.qD)(i,e)}},iK=(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)}},oK=(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 aK(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,
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,
5592 5593 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,
5593 5594 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,
5594 -L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(KZ.UU,"","storeengine")&&(0,o.registerBlockType)(KZ.UU,{title:(0,L.__)("Checkout 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)(()=>{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",QZ(i),QZ(i,"Tablet"),QZ(i,"Mobile"),t.customDeviceMap(t=>QZ(i,t))),
5595 -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",tK(i),tK(i,"Tablet"),tK(i,"Mobile"),t.customDeviceMap(t=>tK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner input,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form input",eK(i),eK(i,"Tablet"),eK(i,"Mobile"),t.customDeviceMap(t=>eK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner select",iK(i),iK(i,"Tablet"),iK(i,"Mobile"),t.customDeviceMap(t=>iK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-ajax-checkout-form .storeengine-checkout__order-btn button",oK(i),oK(i,"Tablet"),oK(i,"Mobile"),t.customDeviceMap(t=>oK(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}),aK.propTypes={}
5596 -;const lK={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",
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",
5597 5598 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:"",
5598 5599 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",
5599 5600 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:"",
5600 5601 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:"",
@@ -5603,14 +5604,14 @@
5603 5604 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:"",
5604 5605 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:"",
5605 5606 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:"",
5606 5607 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:"",
5607 -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 nK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:lK.UU,attributes:e,typography:[{
5608 -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})})})})}nK.propTypes={};const sK=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},rK=(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,
5609 -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 bK(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,
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,
5610 5611 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,
5611 -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)(lK.UU,"","storeengine")&&(0,o.registerBlockType)(lK.UU,{title:(0,L.__)("Continue Button","ablocks"),attributes:lK.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
5612 -;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",sK(i),sK(i,"Tablet"),sK(i,"Mobile"),t.customDeviceMap(t=>sK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode a",rK(i),rK(i,"Tablet"),rK(i,"Mobile"),t.customDeviceMap(t=>rK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aK,{...t}),(0,I.jsx)(nK,{...t})]})},save:()=>null}),bK.propTypes={};const cK={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,
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,
5613 5614 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",
5614 5615 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:"",
5615 5616 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:"",
5616 5617 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:{
@@ -5620,14 +5621,14 @@
5620 5621 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:""}},
5621 5622 _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,
5622 5623 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:"",
5623 5624 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,
5624 -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)(tP,{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},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{
5625 -children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-checkout-button",httpMethod:"POST",attributes:e})})})})}dK.propTypes={};const uK=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,width:"100%",display:"flex"}},pK=(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 mK(t){
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){
5626 5627 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,
5627 5628 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"),
5628 -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)(cK.UU,"","storeengine")&&(0,o.registerBlockType)(cK.UU,{title:(0,L.__)("Checkout Button","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
5629 -})},[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",uK(i),uK(i,"Tablet"),uK(i,"Mobile"),t.customDeviceMap(t=>uK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode a",pK(i),pK(i,"Tablet"),pK(i,"Mobile"),t.customDeviceMap(t=>pK(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,I.jsx)(dK,{...t})]})},save:()=>null}),mK.propTypes={};const hK={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",
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",
5630 5631 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:"",
5631 5632 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,
5632 5633 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,
5633 5634 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:"",
@@ -5635,21 +5636,21 @@
5635 5636 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:"",
5636 5637 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:"",
5637 5638 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:"",
5638 5639 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:{
5639 -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 gK(t){
5640 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{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)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-cart-sub-table",httpMethod:"POST",attributes:e})})})})}gK.propTypes={};const fK=(t,e="")=>{const i={};return i.width=`${t?.tableWidth}%`??0,{...i}},yK=(t,e="")=>{const{tableAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,display:"flex"}},TK=(t,e="")=>({background:(0,Hs.qD)(t?.tableBackground)}),HK=(t,e="")=>{const i=(0,M.Zy)(t?.firstTableTypography??"",{"font-weight":"400"
5641 -}),o=t.firstTableTypographyGlobal?t.firstTableTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.tableColor)}},MK=(t,e="")=>({background:(0,Hs.qD)(t?.tableLastBackground)}),xK=(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)(hK.UU,"","storeengine")&&(0,o.registerBlockType)(hK.UU,{title:(0,L.__)("Cart Sub Table","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),
5642 -null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode table",fK(i),fK(i,"Tablet"),fK(i,"Mobile"),t.customDeviceMap(t=>fK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode ",yK(i),yK(i,"Tablet"),yK(i,"Mobile"),t.customDeviceMap(t=>yK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child ",TK(i),TK(i,"Tablet"),TK(i,"Mobile"),t.customDeviceMap(t=>TK(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",HK(i),HK(i,"Tablet"),HK(i,"Mobile"),t.customDeviceMap(t=>HK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr",MK(i),MK(i,"Tablet"),MK(i,"Mobile"),t.customDeviceMap(t=>MK(i,t))),
5643 -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",xK(i),xK(i,"Tablet"),xK(i,"Mobile"),t.customDeviceMap(t=>xK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(mK,{...t}),(0,I.jsx)(gK,{...t})]})},save:()=>null});const kK=(0,Eb.D$)({attributeName:"button_width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),vK=(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$)({
5644 -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 _K(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"
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"
5645 5646 }],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"),
5646 -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:kK,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,
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,
5647 5648 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,
5648 -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:vK,autoSyncRange:!0
5649 -}),(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:vK}),(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:vK})]}),("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",
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",
5650 5651 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"),
5651 -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,_K.propTypes={};const RK={UU:"ablocks/storeengine-cart-button",uK:{block_id:{type:"string",
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",
5652 5653 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:"",
5653 5654 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:"",
5654 5655 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:"",
5655 5656 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,
@@ -5664,17 +5665,17 @@
5664 5665 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:{
5665 5666 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,
5666 5667 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:"",
5667 5668 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,
5668 -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,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:RK.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}})})})})}SK.propTypes={};const WK=(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"
5669 -}),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)}},PK=(t,e="")=>({color:(0,Hs.qD)(t?.button_hover_color),background:(0,Hs.qD)(t?.button_bg_hover)}),UK=(t,e="")=>{const i={};return i["justify-content"]=t?.buttonAlign[`value${e}`]??[],i},jK=(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)}},wK=(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)}},zK=(t,e="")=>({...(0,
5670 -Eb.qD)({attributeValue:t?.boxWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),background:(0,Hs.qD)(t?.boxBackground)}),CK=(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})}),AK=(t,e="")=>{const i={};return i["justify-content"]=t?.priceAlign[`value${e}`]??[],i},LK=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.elementGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})}),DK=(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 NK(t){
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){
5671 5672 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,
5672 5673 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"),
5673 -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)(RK.UU,"","storeengine")&&(0,o.registerBlockType)(RK.UU,{title:(0,L.__)("Add To Cart","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
5674 -;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",WK(i),WK(i,"Tablet"),WK(i,"Mobile"),t.customDeviceMap(t=>WK(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",PK(i),PK(i,"Tablet"),PK(i,"Mobile"),t.customDeviceMap(t=>PK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity-wrap",UK(i),UK(i,"Tablet"),UK(i,"Mobile"),t.customDeviceMap(t=>UK(i,t))),
5675 -t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode .storeengine-price.amount",jK(i),jK(i,"Tablet"),jK(i,"Mobile"),t.customDeviceMap(t=>jK(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",wK(i),wK(i,"Tablet"),wK(i,"Mobile"),t.customDeviceMap(t=>wK(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",zK(i),zK(i,"Tablet"),zK(i,"Mobile"),t.customDeviceMap(t=>zK(i,t))),
5676 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product-price-summery .storeengine-single-product-price-label input[type=radio]",CK(i),CK(i,"Tablet"),CK(i,"Mobile"),t.customDeviceMap(t=>CK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single__amount",AK(i),AK(i,"Tablet"),AK(i,"Mobile"),t.customDeviceMap(t=>AK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode",LK(i),LK(i,"Tablet"),LK(i,"Mobile"),t.customDeviceMap(t=>LK(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",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)(_K,{...t}),(0,I.jsx)(SK,{...t})]})},save:()=>null}),NK.propTypes={};const IK={
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={
5677 5678 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:"",
5678 5679 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:"",
5679 5680 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:"",
5680 5681 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:"",
@@ -5683,14 +5684,14 @@
5683 5684 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",
5684 5685 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:"",
5685 5686 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:"",
5686 5687 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:"",
5687 -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)(Yb.A,{blockId:i,name:IK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{
5688 -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})})})})}VK.propTypes={};const OK=(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}},YK=(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}},XK=(t,e="")=>{const i={};i.color=t?.emailColor??"";const o=(0,M.Zy)(t?.emailTypography,{"font-weight":"400"
5689 -}),a=t?.emailTypographyGlobal?t?.emailTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}};function BK(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})}),
5690 -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)(IK.UU,"","storeengine")&&(0,o.registerBlockType)(IK.UU,{title:(0,
5691 -L.__)("Order Info","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;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",OK(i),OK(i,"Tablet"),OK(i,"Mobile"),e(t=>OK(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",YK(i),YK(i,"Tablet"),YK(i,"Mobile"),e(t=>YK(i,t))),
5692 -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",XK(i,""),XK(i,"Tablet"),XK(i,"Mobile"),e(t=>XK(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}),BK.propTypes={};const EK={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:"",
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:"",
5693 5694 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",
5694 5695 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:"",
5695 5696 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,
5696 5697 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:"",
@@ -5698,13 +5699,13 @@
5698 5699 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,
5699 5700 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:"",
5700 5701 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,
5701 5702 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:{
5702 -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 FK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:EK.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},{
5703 -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})})})})}FK.propTypes={};const qK=(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)}},$K=(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 GK(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,
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,
5704 5705 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"),
5705 -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)(EK.UU,"","storeengine")&&(0,o.registerBlockType)(EK.UU,{title:(0,L.__)("Billing Info","ablocks"),attributes:EK.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)(()=>{
5706 -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",qK(i),qK(i,"Tablet"),qK(i,"Mobile"),e(t=>qK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-address p",$K(i),$K(i,"Tablet"),$K(i,"Mobile"),e(t=>$K(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,I.jsx)(FK,{...t})]})},save:()=>null}),GK.propTypes={};const ZK={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"},
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"},
5707 5708 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",
5708 5709 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:""
5709 5710 }},_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:"",
5710 5711 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",
@@ -5712,16 +5713,16 @@
5712 5713 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:"",
5713 5714 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:"",
5714 5715 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:"",
5715 5716 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",
5716 -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 KK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:ZK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,
5717 -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})})})})}KK.propTypes={};const JK=(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)}},QK=(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)(ZK.UU,"","storeengine")&&(0,o.registerBlockType)(ZK.UU,{title:(0,L.__)("Shipping Info","ablocks"),attributes:ZK.uK,icon:(0,I.jsx)("img",{
5718 -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",JK(i,""),JK(i,"Tablet"),JK(i,"Mobile"),e(t=>JK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p",QK(i,""),QK(i,"Tablet"),QK(i,"Mobile"),e(t=>QK(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(GK,{...t}),(0,I.jsx)(KK,{...t})]})},save:()=>null});const tJ=(0,Eb.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,
5719 -unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),eJ=(0,Eb.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0});function iJ(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:tJ,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),
5720 -attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:eJ,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"),
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"),
5721 5722 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,
5722 5723 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",
5723 -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,iJ.propTypes={};const oJ={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:"",
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:"",
5724 5725 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:"",
5725 5726 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:""},
5726 5727 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",
5727 5728 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"}},
@@ -5732,19 +5733,19 @@
5732 5733 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:"",
5733 5734 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:"",
5734 5735 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:"",
5735 5736 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,
5736 -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 aJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:oJ.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,
5737 -I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-order-details",httpMethod:"POST",attributes:e})})})})}aJ.propTypes={};const lJ=(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)}},nJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),sJ=(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})}),rJ=(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)}},bJ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),cJ=(t,e="")=>{
5738 -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}},dJ=(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}},uJ=(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}},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)(oJ.UU,"","storeengine")&&(0,
5739 -o.registerBlockType)(oJ.UU,{title:(0,L.__)("Order Details","ablocks"),attributes:oJ.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",lJ(i),lJ(i,"Tablet"),lJ(i,"Mobile"),e(t=>lJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p:hover",nJ(i),nJ(i,"Tablet"),nJ(i,"Mobile"),e(t=>nJ(i,t))),
5740 -t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content img",sJ(i),sJ(i,"Tablet"),sJ(i,"Mobile"),e(t=>sJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",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 h6:hover",bJ(i),bJ(i,"Tablet"),bJ(i,"Mobile"),e(t=>bJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__price",cJ(i),cJ(i,"Tablet"),cJ(i,"Mobile"),e(t=>cJ(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",dJ(i),dJ(i,"Tablet"),dJ(i,"Mobile"),e(t=>dJ(i,t))),
5741 -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",uJ(i),uJ(i,"Tablet"),uJ(i,"Mobile"),e(t=>uJ(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",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}),e&&(0,I.jsx)(iJ,{...t}),(0,I.jsx)(aJ,{...t})]})},save:()=>null});var mJ=i(82424);function hJ(t){
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){
5742 5743 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,
5743 -min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:mJ.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:mJ.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,
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,
5744 5745 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,
5745 5746 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,
5746 -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})})})]})]})})})}hJ.propTypes={};const gJ={UU:"ablocks/storeengine-funnel-checkout",uK:{block_id:{type:"string",
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",
5747 5748 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",
5748 5749 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"}},
5749 5750 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",
5750 5751 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:"",
@@ -5756,19 +5757,19 @@
5756 5757 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:"",
5757 5758 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",
5758 5759 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",
5759 5760 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:{
5760 -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 fJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:gJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-checkout",httpMethod:"POST",attributes:e})})})})}fJ.propTypes={};const yJ=(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)}},TJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),HJ=(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",
5761 -isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),MJ=(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)}),kJ=(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}},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}},_J=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"
5762 -}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},RJ=(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)(gJ.UU,"","storeengine")&&(0,o.registerBlockType)(gJ.UU,{title:(0,L.__)("Funnel Checkout","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;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):{}
5763 -;return t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title",yJ(i),yJ(i,"Tablet"),yJ(i,"Mobile"),e(t=>yJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title:hover",TJ(i),TJ(i,"Tablet"),TJ(i,"Mobile"),e(t=>TJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item-entry-left img",HJ(i),HJ(i,"Tablet"),HJ(i,"Mobile"),e(t=>HJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a",MJ(i),MJ(i,"Tablet"),MJ(i,"Mobile"),e(t=>MJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a:hover",xJ(i),xJ(i,"Tablet"),xJ(i,"Mobile"),e(t=>xJ(i,t))),
5764 -t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__price",kJ(i),kJ(i,"Tablet"),kJ(i,"Mobile"),e(t=>kJ(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",vJ(i),vJ(i,"Tablet"),vJ(i,"Mobile"),e(t=>vJ(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",_J(i),_J(i,"Tablet"),_J(i,"Mobile"),e(t=>_J(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",RJ(i),RJ(i,"Tablet"),RJ(i,"Mobile"),e(t=>RJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s
5765 -}),e&&(0,I.jsx)(hJ,{...t}),(0,I.jsx)(fJ,{...t})]})},save:()=>null});var SJ=i(74748);function WJ(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}),
5766 -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:SJ.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:SJ.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,
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,
5767 5768 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,{
5768 5769 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"),
5769 5770 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,
5770 -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})})})]})]})})})}WJ.propTypes={};const PJ={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:""},
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:""},
5771 5772 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:"",
5772 5773 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",
5773 5774 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",
5774 5775 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",
@@ -5779,16 +5780,16 @@
5779 5780 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:"",
5780 5781 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:"",
5781 5782 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:{
5782 5783 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"}},
5783 -_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 UJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:PJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-offer",httpMethod:"POST",attributes:e})})})})}UJ.propTypes={};const jJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"
5784 -}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},wJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),zJ=(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})}),CJ=(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)}},AJ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),LJ=(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,
5785 -Hs.qD)(t?.discountPriceColor),...a}},DJ=(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}},NJ=(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}},IJ=(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 VJ(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,
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,
5786 5787 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,
5787 5788 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,{
5788 -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)(PJ.UU,"","storeengine")&&(0,o.registerBlockType)(PJ.UU,{title:(0,L.__)("Funnel Offer","ablocks"),attributes:PJ.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",jJ(i),jJ(i,"Tablet"),jJ(i,"Mobile"),e(t=>jJ(i,t))),
5789 -t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title:hover",wJ(i),wJ(i,"Tablet"),wJ(i,"Mobile"),e(t=>wJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content img",zJ(i),zJ(i,"Tablet"),zJ(i,"Mobile"),e(t=>zJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",CJ(i),CJ(i,"Tablet"),CJ(i,"Mobile"),e(t=>CJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",AJ(i),AJ(i,"Tablet"),AJ(i,"Mobile"),e(t=>AJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__price",LJ(i),LJ(i,"Tablet"),LJ(i,"Mobile"),e(t=>LJ(i,t))),
5790 -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",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 p,\n\t\t\t {{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title p span",NJ(i),NJ(i,"Tablet"),NJ(i,"Mobile"),e(t=>NJ(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",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)(WJ,{...t}),(0,I.jsx)(UJ,{...t})]})},save:()=>null}),VJ.propTypes={};const OJ={
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={
5791 5792 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",
5792 5793 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:"",
5793 5794 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:"",
5794 5795 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:"",
@@ -5798,14 +5799,14 @@
5798 5799 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:"",
5799 5800 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:"",
5800 5801 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:"",
5801 5802 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:"",
5802 -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 YJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:OJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,
5803 -I.jsx)(tW(),{block:"ablocks/storeengine-funnel-accept",httpMethod:"POST",attributes:e})})})})}YJ.propTypes={};const XJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},BJ=(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 EJ(t){
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){
5804 5805 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,
5805 5806 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,
5806 -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)(OJ.UU,"","storeengine")&&(0,o.registerBlockType)(OJ.UU,{title:(0,L.__)("Funnel Accept","ablocks"),attributes:OJ.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
5807 -;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}}",XJ(i),XJ(i,"Tablet"),XJ(i,"Mobile"),t.customDeviceMap(t=>XJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",BJ(i),BJ(i,"Tablet"),BJ(i,"Mobile"),t.customDeviceMap(t=>BJ(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)(YJ,{...t})]})},save:()=>null}),EJ.propTypes={};const FJ={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:"",
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:"",
5808 5809 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:"",
5809 5810 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:"",
5810 5811 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"}},
5811 5812 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",
@@ -5815,14 +5816,14 @@
5815 5816 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:"",
5816 5817 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:"",
5817 5818 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:"",
5818 5819 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,
5819 -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 qJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:FJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-decline",httpMethod:"POST",attributes:e})})})})}qJ.propTypes={};const $J=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},GJ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"
5820 -}),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 ZJ(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||"",
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||"",
5821 5822 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,
5822 5823 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,
5823 -setAttributes:i})]})]})})})}(0,M.xV)(FJ.UU,"","storeengine")&&(0,o.registerBlockType)(FJ.UU,{title:(0,L.__)("Funnel Decline","ablocks"),attributes:FJ.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}}",$J(i),$J(i,"Tablet"),$J(i,"Mobile"),t.customDeviceMap(t=>$J(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",GJ(i),GJ(i,"Tablet"),GJ(i,"Mobile"),t.customDeviceMap(t=>GJ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(EJ,{...t}),(0,I.jsx)(qJ,{...t})]})},save:()=>null}),
5824 -ZJ.propTypes={};const KJ={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:"",
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:"",
5825 5826 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:"",
5826 5827 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:"",
5827 5828 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:"",
5828 5829 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:"",
@@ -5831,13 +5832,13 @@
5831 5832 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:"",
5832 5833 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:"",
5833 5834 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:"",
5834 5835 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",
5835 -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 JJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:KJ.UU,attributes:e,children:(0,I.jsx)(eW,{
5836 -children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-continue",httpMethod:"POST",attributes:e})})})})}JJ.propTypes={};const QJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},tQ=(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 eQ(t){
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){
5837 5838 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,
5838 5839 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,
5839 -M.xV)(KJ.UU,"","storeengine")&&(0,o.registerBlockType)(KJ.UU,{title:(0,L.__)("Funnel Continue","ablocks"),attributes:KJ.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}}",QJ(i),QJ(i,"Tablet"),QJ(i,"Mobile"),t.customDeviceMap(t=>QJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",tQ(i),tQ(i,"Tablet"),tQ(i,"Mobile"),t.customDeviceMap(t=>tQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ZJ,{...t}),(0,I.jsx)(JJ,{...t})]})},save:()=>null}),eQ.propTypes={};const iQ={
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={
5840 5841 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:"",
5841 5842 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:""}},
5842 5843 _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:"",
5843 5844 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",
@@ -5845,15 +5846,15 @@
5845 5846 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:"",
5846 5847 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:"",
5847 5848 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:"",
5848 5849 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",
5849 -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 oQ(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-mini-cart",httpMethod:"POST",attributes:{...e,postId:i.postId,
5850 -product_id:e.product_id?e.product_id:i.postId}})})})})}oQ.propTypes={};const aQ=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)}),lQ=(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)}},nQ=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}};(0,M.xV)(iQ.UU,"","storeengine")&&(0,o.registerBlockType)(iQ.UU,{title:(0,L.__)("Mini Cart Button","ablocks"),attributes:iQ.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),
5851 -null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart-link svg",aQ(i),aQ(i,"Tablet"),aQ(i,"Mobile"),e(t=>aQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart",nQ(i),nQ(i,"Tablet"),nQ(i,"Mobile"),e(t=>nQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart>button.storeengine-mini-cart-link>.storeengine-min-cart-count",lQ(i),lQ(i,"Tablet"),lQ(i,"Mobile"),e(t=>lQ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(eQ,{...t}),(0,I.jsx)(oQ,{...t})]})},save:()=>null});var sQ=i(57374);function rQ(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,
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,
5852 5853 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,
5853 -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:sQ.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,
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,
5854 5855 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})}),
5855 -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})]})})})})})})}rQ.propTypes={};const bQ={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",
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",
5856 5857 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:"",
5857 5858 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:"",
5858 5859 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:"",
5859 5860 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:{
@@ -5864,15 +5865,15 @@
5864 5865 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:"",
5865 5866 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:"",
5866 5867 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",
5867 5868 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,
5868 -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:bQ.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}})})})})}cQ.propTypes={};const dQ=(t,e="")=>{const i=(0,M.Zy)(t?.infoBoxPadding,{unit:"px"}),o=(0,
5869 -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})}},uQ=(t,e="")=>{const i=(0,M.Zy)(t.infoTypography,{"font-weight":"400"}),o=t.infoTypographyGlobal?t.infoTypographyGlobal:"";return{...(0,U.qD)(i,e,o)}},pQ=(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)}},mQ=(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)(bQ.UU,"","storeengine")&&(0,o.registerBlockType)(bQ.UU,{title:(0,L.__)("Cart Notice","ablocks"),attributes:bQ.uK,
5870 -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",dQ(i),dQ(i,"Tablet"),dQ(i,"Mobile"),t.customDeviceMap(t=>dQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-notice .storeengine-notice--message p,\n\t\t\t{{WRAPPER}} .storeengine-notice .storeengine-notice--message i",uQ(i),uQ(i,"Tablet"),uQ(i,"Mobile"),t.customDeviceMap(t=>uQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-notice a,\n\t\t\t{{WRAPPER}} .storeengine-notice button",pQ(i),pQ(i,"Tablet"),pQ(i,"Mobile"),t.customDeviceMap(t=>pQ(i,t))),
5871 -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",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)(rQ,{...t}),(0,I.jsx)(cQ,{...t})]})},save:()=>null});var hQ=i(69993);function gQ(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,
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,
5872 5873 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,
5873 -max:["vw","%"].includes(a["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:hQ.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:hQ.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,
5874 -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})]})})})})})})}gQ.propTypes={};const fQ={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:"",
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:"",
5875 5876 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:"",
5876 5877 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:"",
5877 5878 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:"",
5878 5879 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,
@@ -5881,19 +5882,19 @@
5881 5882 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:"",
5882 5883 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:"",
5883 5884 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:"",
5884 5885 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",
5885 -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 yQ(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:fQ.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}})})})})}yQ.propTypes={};const TQ=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(i,e),...(0,
5886 -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})}},HQ=(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)(fQ.UU,"","storeengine")&&(0,o.registerBlockType)(fQ.UU,{title:(0,L.__)("Product Gallery","ablocks"),attributes:fQ.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
5887 -;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",TQ(i),TQ(i,"Tablet"),TQ(i,"Mobile"),t.customDeviceMap(t=>TQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-gallery_wrapper .storeengine-row .storeengine-col-12 ",HQ(i),HQ(i,"Tablet"),HQ(i,"Mobile"),t.customDeviceMap(t=>HQ(i,t))),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)(yQ,{...t})]})},save:()=>null});var MQ=i(90723);function xQ(t){
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){
5888 5889 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"),
5889 5890 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}),
5890 5891 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:[{
5891 -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:MQ.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,
5892 -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:MQ.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,
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,
5893 5894 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,
5894 -isInline:!1,isResponsive:!0,attributeName:"AddButtonWidth",attributeValue:S,hasUnit:!0,setAttributes:i,attributeDefaultValue:MQ.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,
5895 -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})]})})]})]})})})}xQ.propTypes={};const kQ={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:{
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:{
5896 5897 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:"",
5897 5898 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",
5898 5899 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:"",
5899 5900 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:"",
@@ -5910,15 +5911,15 @@
5910 5911 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:"",
5911 5912 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:"",
5912 5913 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,
5913 5914 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:"",
5914 -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 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:kQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{
5915 -block:"ablocks/storeengine-product-summary",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}vQ.propTypes={};const _Q=(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)}},RQ=(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)}},SQ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductPriceTypography,{
5916 -"font-weight":"400"}),o=t?.ProductPriceTypographyGlobal?t?.ProductPriceTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productPriceColor)}},WQ=(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 PQ(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=>({
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=>({
5917 5918 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,{
5918 5919 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,
5919 -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)(kQ.UU,"","storeengine")&&(0,o.registerBlockType)(kQ.UU,{title:(0,L.__)("Product Summary","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
5920 -;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",RQ(i),RQ(i,"Tablet"),RQ(i,"Mobile"),t.customDeviceMap(t=>RQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-simple-price .storeengine-price",SQ(i),SQ(i,"Tablet"),SQ(i,"Mobile"),t.customDeviceMap(t=>SQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity input[type=number]",WQ(i),WQ(i,"Tablet"),WQ(i,"Mobile"),t.customDeviceMap(t=>WQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-btn--direct-checkout",_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)(xQ,{...t}),(0,I.jsx)(vQ,{...t})]})},save:()=>null}),PQ.propTypes={};const UQ={UU:"ablocks/storeengine-product-description",uK:{block_id:{type:"string",
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",
5921 5922 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"}},
5922 5923 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:"",
5923 5924 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,
5924 5925 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:"",
@@ -5928,20 +5929,20 @@
5928 5929 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:"",
5929 5930 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:"",
5930 5931 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,
5931 5932 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:"",
5932 -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 jQ(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(),{
5933 -block:"ablocks/storeengine-product-description",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}jQ.propTypes={};const wQ=(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)}},zQ=(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)(UQ.UU,"","storeengine")&&(0,o.registerBlockType)(UQ.UU,{title:(0,L.__)("Product Description","ablocks"),attributes:UQ.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)(()=>{
5934 -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",wQ(i),wQ(i,"Tablet"),wQ(i,"Mobile"),t.customDeviceMap(t=>wQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item p",zQ(i),zQ(i,"Tablet"),zQ(i,"Mobile"),t.customDeviceMap(t=>zQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(PQ,{...t}),(0,I.jsx)(jQ,{...t})]})},save:()=>null});var CQ=i(62511);function AQ(t){
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){
5935 5936 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,{
5936 5937 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,
5937 5938 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",
5938 -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:CQ.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:CQ.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,
5939 -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:CQ.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,
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,
5940 5941 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,
5941 5942 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"),
5942 -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:CQ.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:_,
5943 -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})})})]})})})]})})})}AQ.propTypes={};const LQ={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:{
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:{
5944 5945 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",
5945 5946 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:"",
5946 5947 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:"",
5947 5948 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:"",
@@ -5954,20 +5955,20 @@
5954 5955 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:"",
5955 5956 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:"",
5956 5957 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:{
5957 5958 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:{
5958 -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)(tP,{blockId:o,name:LQ.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}})})})})}DQ.propTypes={};const NQ=(t,e="")=>{const i=(0,
5959 -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)}},IQ=(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})}},VQ=(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)}},OQ=(t,e="")=>({color:(0,Hs.qD)(t?.rating_color),...(0,Eb.qD)({
5960 -attributeValue:t?.rating_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),YQ=(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)}},XQ=(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)}},BQ=(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})}),EQ=(t,e="")=>({background:(0,Hs.qD)(t?.fillBg)||"#e7e7e7"});(0,M.xV)(LQ.UU,"","storeengine")&&(0,o.registerBlockType)(LQ.UU,{title:(0,L.__)("Product Review","ablocks"),attributes:LQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
5961 -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",IQ(i),IQ(i,"Tablet"),IQ(i,"Mobile"),t.customDeviceMap(t=>IQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item h2",NQ(i),NQ(i,"Tablet"),NQ(i,"Mobile"),t.customDeviceMap(t=>NQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating",VQ(i),VQ(i,"Tablet"),VQ(i,"Mobile"),t.customDeviceMap(t=>VQ(i,t))),
5962 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating-html .storeengine-icon",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-review",YQ(i),YQ(i,"Tablet"),YQ(i,"Mobile"),t.customDeviceMap(t=>YQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-fill",EQ(i),EQ(i,"Tablet"),EQ(i,"Mobile"),t.customDeviceMap(t=>EQ(i,t))),
5963 -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",XQ(i),XQ(i,"Tablet"),XQ(i,"Mobile"),t.customDeviceMap(t=>XQ(i,t))),
5964 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-icon",BQ(i),BQ(i,"Tablet"),BQ(i,"Mobile"),t.customDeviceMap(t=>BQ(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});const FQ=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,
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,
5965 5966 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,
5966 5967 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,
5967 5968 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,
5968 -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})]})]})})})})})})},qQ=[{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"}],$Q=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":
5969 -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""}},GQ=t=>{switch(t){case"wave":case"line":return 45;case"arc":case"oval":return 150;case"circle":case"spiral":return 250;default:return 100}},ZQ={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",
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",
5970 5971 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:"",
5971 5972 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:"",
5972 5973 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:"",
5973 5974 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:""}},
@@ -5975,12 +5976,12 @@
5975 5976 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",
5976 5977 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:"",
5977 5978 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:"",
5978 5979 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:"",
5979 -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"}}}},KQ=t=>{
5980 -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:qQ})}),(0,I.jsx)(Yb.A,{blockId:a,name:ZQ.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:GQ(s),viewBox:"custom"===s?`${f}`:`0 0 250 ${GQ(s)}`,children:[(0,I.jsx)("path",{id:`text-path-${a}`,d:"custom"===s?p:$Q(s),fill:"none",strokeWidth:u,className:"ablocks-text-path-svg",stroke:r?(0,
5981 -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})})]})})]})},JQ=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},QQ=(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),
5982 -...(0,Mc.qD)(a,e),...(0,fc.qD)(t?.textShadow)}},t1=t=>({transform:`rotate(${t?.rotate}deg)`,"--width":`${t?.iconSize}px`}),e1=(t,e="")=>({...{fill:(0,Hs.qD)(t?.textColorH),...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}}),i1={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:{
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:{
5983 5984 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:"",
5984 5985 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:"",
5985 5986 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:"",
5986 5987 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",
@@ -5987,17 +5988,17 @@
5987 5988 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:"",
5988 5989 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:"",
5989 5990 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:"",
5990 5991 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:"",
5991 -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 o1(t){
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){
5992 5993 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,
5993 5994 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
5994 5995 }),(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,
5995 -attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,o.registerBlockType)(ZQ.UU,{title:(0,L.__)("Text Path","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--text-path"}),attributes:ZQ.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",JQ(i),JQ(i,"Tablet"),JQ(i,"Mobile"),e(t=>JQ(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text",QQ(i),QQ(i,"Tablet"),QQ(i,"Mobile"),e(t=>QQ(i,t))),
5996 -t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text:hover",e1(i),e1(i,"Tablet"),e1(i,"Mobile"),e(t=>e1(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-path-text-path",t1(i),t1(i),t1(i),e(t=>t1(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(FQ,{...t}),(0,I.jsx)(KQ,{...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:ZQ.UU,attributes:e,children:(0,I.jsxs)("svg",{className:"ablocks-path-text-path",height:GQ(a),viewBox:"custom"===a?`${p}`:`0 0 250 ${GQ(a)}`,children:[(0,I.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?c:$Q(a),fill:"none",
5997 -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:i1.uK,save:t=>{
5998 -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:i1.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-text-path",children:(0,I.jsxs)("svg",{className:"ablocks-path-text-path",height:GQ(a),viewBox:"custom"===a?`${f}`:`0 0 250 ${GQ(a)}`,children:[(0,I.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?u:$Q(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",
5999 -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})})]})})})})}}]}),o1.propTypes={};const a1={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:"",
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:"",
6000 6001 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:"",
6001 6002 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",
6002 6003 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:"",
6003 6004 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:"",
@@ -6007,14 +6008,14 @@
6007 6008 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,
6008 6009 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:"",
6009 6010 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",
6010 6011 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:{
6011 -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 l1(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:a1.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})})})})}l1.propTypes={};const n1=(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},s1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"
6012 -}),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)}},r1=(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)}},b1=(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})}),c1=(t,e="")=>{const i=(0,
6013 -Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function d1(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,{
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,{
6014 6015 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,
6015 -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)(a1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(a1.UU,{title:(0,L.__)("Bookmark Button","ablocks"),attributes:a1.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),
6016 -null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-button",n1(i),n1(i,"Tablet"),n1(i,"Mobile"),t.customDeviceMap(t=>n1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button",s1(i),s1(i,"Tablet"),s1(i,"Mobile"),t.customDeviceMap(t=>s1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button:hover",r1(i),r1(i,"Tablet"),r1(i,"Mobile"),t.customDeviceMap(t=>r1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg",b1(i),b1(i,"Tablet"),b1(i,"Mobile"),t.customDeviceMap(t=>b1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg path",c1(i),c1(i),c1(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(o1,{...t}),(0,I.jsx)(l1,{...t})]})},save:()=>null}),d1.propTypes={};const u1={UU:"ablocks/ecm-bookmark-badge",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},buttonColor:{type:"string",default:""},
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:""},
6017 6018 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,
6018 6019 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:"",
6019 6020 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:"",
6020 6021 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:"",
@@ -6024,15 +6025,15 @@
6024 6025 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:"",
6025 6026 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",
6026 6027 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",
6027 6028 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"}},
6028 -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function p1(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:u1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-bookmark-badge",httpMethod:"POST",attributes:e})})})})}p1.propTypes={};const m1=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},h1=(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",
6029 -unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},g1=(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)}},f1=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function y1(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,
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,
6030 6031 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,{
6031 6032 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,{
6032 6033 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"),
6033 -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)(u1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(u1.UU,{title:(0,L.__)("Bookmark Badge","ablocks"),attributes:u1.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
6034 -;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",m1(i),m1(i,"Tablet"),m1(i,"Mobile"),t.customDeviceMap(t=>m1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg",h1(i),h1(i,"Tablet"),h1(i,"Mobile"),t.customDeviceMap(t=>h1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg path",f1(i),f1(i),f1(i)),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg:hover",g1(i),g1(i,"Tablet"),g1(i,"Mobile"),t.customDeviceMap(t=>g1(i,t))),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)(p1,{...t})]})},save:()=>null}),i(38652),y1.propTypes={};const T1={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",
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",
6035 6036 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:"",
6036 6037 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:"",
6037 6038 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",
6038 6039 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",
@@ -6044,14 +6045,14 @@
6044 6045 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:"",
6045 6046 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:"",
6046 6047 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:"",
6047 6048 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:"",
6048 -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 H1(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:T1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-bookmark-list",httpMethod:"POST",attributes:e})})})})}H1.propTypes={};const M1=(t,e="")=>{const i={}
6049 -;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)}},x1=(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)}},k1=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},v1=(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,
6050 -fc.qD)(t?.titleTextShadow)}},_1=(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)}},R1=(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 S1(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,
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,
6051 6052 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",
6052 -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)(T1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(T1.UU,{title:(0,L.__)("Bookmark List","ablocks"),attributes:T1.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),
6053 -t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item",M1(i),M1(i,"Tablet"),M1(i,"Mobile"),t.customDeviceMap(t=>M1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item:hover",x1(i),x1(i,"Tablet"),x1(i,"Mobile"),t.customDeviceMap(t=>x1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list",k1(i),k1(i,"Tablet"),k1(i,"Mobile"),t.customDeviceMap(t=>k1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-title",v1(i),v1(i,"Tablet"),v1(i,"Mobile"),t.customDeviceMap(t=>v1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-date",_1(i),_1(i,"Tablet"),_1(i,"Mobile"),t.customDeviceMap(t=>_1(i,t))),t.addClassStyles("{{WRAPPER}}",R1(i),R1(i,"Tablet"),R1(i,"Mobile"),t.customDeviceMap(t=>R1(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(y1,{...t}),(0,I.jsx)(H1,{...t})]})},save:()=>null}),S1.propTypes={};const W1={UU:"ablocks/ecm-bookmark-count",uK:{
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:{
6054 6055 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:"",
6055 6056 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:"",
6056 6057 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",
6057 6058 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:"",
@@ -6058,14 +6059,14 @@
6058 6059 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:"",
6059 6060 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:"",
6060 6061 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:"",
6061 6062 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",
6062 -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 P1(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:W1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,
6063 -I.jsx)(tW(),{block:"ablocks/ecm-bookmark-count",httpMethod:"POST",attributes:e})})})})}P1.propTypes={};const U1=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},j1=(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 w1(t){
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){
6064 6065 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"),
6065 6066 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,
6066 -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)(W1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(W1.UU,{title:(0,L.__)("Bookmark Count","ablocks"),attributes:W1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){
6067 -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",U1(i),U1(i,"Tablet"),U1(i,"Mobile"),t.customDeviceMap(t=>U1(i,t)));const e=i?.wrapper_class||"wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,j1(i),j1(i,"Tablet"),j1(i,"Mobile"),t.customDeviceMap(t=>j1(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(S1,{...t}),(0,I.jsx)(P1,{...t})]})},save:()=>null}),i(6035),w1.propTypes={};const z1={UU:"ablocks/ecm-reaction-list",uK:{reactionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},reacTitleTypographyGlobal:{type:"string",default:""},
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:""},
6068 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",
6069 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"}},
6070 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,
6071 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,
@@ -6074,15 +6075,15 @@
6074 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:"",
6075 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:"",
6076 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:"",
6077 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:{
6078 -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 C1(t){
6079 -const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:z1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-reaction-list",httpMethod:"POST",attributes:e})})})})}C1.propTypes={};const A1=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.reacTitleColor),...(0,U.qD)(i,e)}},L1=(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)}},D1=(t,e="")=>{const i=(0,M.Zy)(t.reacListTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.reacListColor),...(0,U.qD)(i,e)}},N1=(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)}
6080 -};(0,M.xV)(z1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(z1.UU,{title:(0,L.__)("Reaction List","ablocks"),attributes:z1.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",A1(i),A1(i,"Tablet"),A1(i,"Mobile"),t.customDeviceMap(t=>A1(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--reaction__list",L1(i),L1(i,"Tablet"),L1(i,"Mobile"),t.customDeviceMap(t=>L1(i,t))),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-meta",D1(i),D1(i,"Tablet"),D1(i,"Mobile"),t.customDeviceMap(t=>D1(i,t))),
6081 -t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction",N1(i),N1(i,"Tablet"),N1(i,"Mobile"),t.customDeviceMap(t=>N1(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(w1,{...t}),(0,I.jsx)(C1,{...t})]})},save:()=>null});var I1=i(64608);function V1(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,
6082 -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:I1.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:I1.nO})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
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"),
6083 6084 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,
6084 -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"),V1.propTypes={};const O1={UU:"ablocks/ecm-reaction",uK:{justificationAlign:{type:"object",default:{value:"center",valueTablet:"",
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:"",
6085 6086 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:"",
6086 6087 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:"",
6087 6088 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:"",
6088 6089 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",
@@ -6095,16 +6096,16 @@
6095 6096 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:"",
6096 6097 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:"",
6097 6098 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",
6098 6099 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",
6099 -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 Y1(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:O1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-reaction",httpMethod:"POST",attributes:e})})})})}Y1.propTypes={};const X1=(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)}),B1=(t,e="")=>{const i={};return t.showTitle&&(i.display="block"),{...i}},E1=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,
6100 -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})}}),F1=(t,e="")=>({fill:`${(0,Hs.qD)(t?.fillColor)} !important`,stroke:`${(0,Hs.qD)(t?.iconColor)} !important`}),q1=(t,e="")=>({fill:`${(0,Hs.qD)(t?.activeFillColor)} !important`,stroke:`${(0,Hs.qD)(t?.activeIconColor)} !important`}),$1=(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)}},G1=(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)}},Z1=(t,e="")=>{const i=(0,
6101 -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)}},K1=(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 J1(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",
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",
6102 6103 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,
6103 6104 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",
6104 -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)(O1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(O1.UU,{title:(0,L.__)("Reaction","ablocks"),attributes:O1.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",X1(i),X1(i,"Tablet"),X1(i,"Mobile"),t.customDeviceMap(t=>X1(i,t))),t.addClassStyles("{{WRAPPER}} span.ecm-shortcode--reaction__label.ecm--hidden",B1(i),B1(i,"Tablet"),B1(i,"Mobile")),
6105 -t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg",E1(i),E1(i,"Tablet"),E1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg path",F1(i),F1(i,"Tablet"),F1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction__button--active div.ecm-shortcode--reaction__icon svg path",q1(i),q1(i,"Tablet"),q1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button",$1(i),$1(i,"Tablet"),$1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button:hover",G1(i),G1(i,"Tablet"),G1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active",Z1(i),Z1(i,"Tablet"),Z1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active:hover",K1(i),K1(i,"Tablet"),K1(i,"Mobile")),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,
6106 -I.jsx)(V1,{...t}),(0,I.jsx)(Y1,{...t})]})},save:()=>null}),J1.propTypes={};const Q1={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:"",
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:"",
6107 6108 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:"",
6108 6109 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,
6109 6110 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:"",
6110 6111 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:"",
@@ -6113,14 +6114,14 @@
6113 6114 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:"",
6114 6115 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:"",
6115 6116 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",
6116 6117 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",
6117 -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)(tP,{blockId:o,name:Q1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-upvote",httpMethod:"POST",attributes:e})})})})}t0.propTypes={};const e0=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex","flex-direction":"column"};return i[`value${e}`]&&(o["align-items"]=i[`value${e}`]),o},i0=(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"})
6118 -;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)}},o0=(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)}},a0=(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})}),l0=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function n0(t){
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){
6119 6120 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,
6120 -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)(Q1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(Q1.UU,{title:(0,L.__)("Upvote","ablocks"),attributes:Q1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
6121 -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",e0(i),e0(i,"Tablet"),e0(i,"Mobile"),t.customDeviceMap(t=>e0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn",i0(i),i0(i,"Tablet"),i0(i,"Mobile"),t.customDeviceMap(t=>i0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn:hover",o0(i),o0(i,"Tablet"),o0(i,"Mobile"),t.customDeviceMap(t=>o0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg",a0(i),a0(i,"Tablet"),a0(i,"Mobile"),t.customDeviceMap(t=>a0(i,t))),
6122 -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg path",l0(i),l0(i),l0(i)),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}),n0.propTypes={};const s0={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:"",
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:"",
6123 6124 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:"",
6124 6125 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:"",
6125 6126 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:""},
6126 6127 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",
@@ -6133,14 +6134,14 @@
6133 6134 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:"",
6134 6135 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",
6135 6136 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",
6136 6137 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:{
6137 -type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function r0(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:s0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-upvote-count",httpMethod:"POST",attributes:e})})})})}r0.propTypes={};const b0=(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},c0=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,Hs.qD)(t?.upvoteNumberColor)}};function d0(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,
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,
6138 6139 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,
6139 6140 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,{
6140 6141 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,
6141 -isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})})]})})})}(0,M.xV)(s0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(s0.UU,{title:(0,L.__)("Upvote Count","ablocks"),attributes:s0.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",b0(i),b0(i,"Tablet"),b0(i,"Mobile"),t.customDeviceMap(t=>b0(i,t)));const e=i?.wrapper_class||"upvote-count-wrapper"
6142 -;return t.addClassStyles(`{{WRAPPER}} .${e}`,c0(i),c0(i,"Tablet"),c0(i,"Mobile"),t.customDeviceMap(t=>c0(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(n0,{...t}),(0,I.jsx)(r0,{...t})]})},save:()=>null}),i(11053),d0.propTypes={};const u0={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:"",
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:"",
6143 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:"",
6144 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:"",
6145 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:"",
6146 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",
@@ -6151,15 +6152,15 @@
6151 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:{
6152 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:"",
6153 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:"",
6154 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,
6155 -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 p0(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:u0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-upvote-list",httpMethod:"POST",attributes:e})})})})}p0.propTypes={};const m0=(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}),
6156 -background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},h0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},g0=(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)}},y0=(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)}
6157 -},T0=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}};function H0(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,
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,
6158 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,
6159 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,
6160 -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)(u0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(u0.UU,{title:(0,L.__)("Upvote List","ablocks"),attributes:u0.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),
6161 -t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item",m0(i),m0(i,"Tablet"),m0(i,"Mobile"),t.customDeviceMap(t=>m0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list",h0(i),h0(i,"Tablet"),h0(i,"Mobile"),t.customDeviceMap(t=>h0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-title",g0(i),g0(i,"Tablet"),g0(i,"Mobile"),t.customDeviceMap(t=>g0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-date",f0(i),f0(i,"Tablet"),f0(i,"Mobile"),t.customDeviceMap(t=>f0(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--upvote__list",T0(i),T0(i,"Tablet"),T0(i,"Mobile"),t.customDeviceMap(t=>T0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item:hover",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)(d0,{...t}),(0,I.jsx)(p0,{...t})]})},save:()=>null}),H0.propTypes={};const M0={
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={
6162 6163 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:"",
6163 6164 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,
6164 6165 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:"",
6165 6166 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:"",
@@ -6170,15 +6171,15 @@
6170 6171 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:"",
6171 6172 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",
6172 6173 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",
6173 6174 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:""},
6174 -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function x0(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:M0.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})})})})}x0.propTypes={},i(45352);const k0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"flex-start"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},v0=(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,
6175 -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=(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})}),R0=(t,e="")=>_0(t?.pendingBadgeFillColor,t?.pendingBadgeSize,e),S0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"center"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},W0=(t,e="")=>_0(t?.confirmationBandageFillColor,t?.confirmationBandageSize,e,!0);function P0(t){
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){
6176 6177 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,
6177 6178 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,
6178 -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)(M0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(M0.UU,{title:(0,L.__)("Claim Button","ablocks"),attributes:M0.uK,icon:(0,
6179 -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",k0(i),k0(i,"Tablet"),k0(i,"Mobile"),t.customDeviceMap(t=>k0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim button",v0(i),v0(i,"Tablet"),v0(i,"Mobile"),t.customDeviceMap(t=>v0(i,t))),[".ecm-shortcode--tooltip",".ecm-shortcode--tooltip svg",".ecm-shortcode--tooltip svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,R0(i),R0(i,"Tablet"),R0(i,"Mobile"),t.customDeviceMap(t=>R0(i,t)))}),
6180 -t.addClassStyles("{{WRAPPER}} .ablocks-block-container",S0(i),S0(i,"Tablet"),S0(i,"Mobile"),t.customDeviceMap(t=>S0(i,t))),[".ecm-shortcode--claim__message",".ecm-shortcode--claim__message svg",".ecm-shortcode--claim__message svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,W0(i),W0(i,"Tablet"),W0(i,"Mobile"),t.customDeviceMap(t=>W0(i,t)))}),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(H0,{...t}),(0,I.jsx)(x0,{...t})]})},save:()=>null}),P0.propTypes={};const U0={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:{
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:{
6181 6182 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:"",
6182 6183 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:"",
6183 6184 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:"",
6184 6185 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",
@@ -6188,17 +6189,17 @@
6188 6189 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:"",
6189 6190 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,
6190 6191 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:"",
6191 6192 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:"",
6192 -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,{blockId:o,name:U0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-badge",httpMethod:"POST",attributes:e})})})})}j0.propTypes={};const w0=(t,e="")=>{
6193 -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})}},z0=(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})}},C0=(t,e="")=>{
6194 -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)}},A0=(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)}},L0=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function D0(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",
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",
6195 6196 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,{
6196 6197 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",
6197 6198 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,
6198 -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)(U0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(U0.UU,{title:(0,
6199 -L.__)("Claim Badge","ablocks"),attributes:U0.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",w0(i),w0(i,"Tablet"),w0(i,"Mobile"),t.customDeviceMap(t=>w0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",w0(i),w0(i,"Tablet"),w0(i,"Mobile"),t.customDeviceMap(t=>w0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge__badge-text",A0(i),A0(i,"Tablet"),A0(i,"Mobile"),t.customDeviceMap(t=>A0(i,t))),
6200 -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg",z0(i),z0(i,"Tablet"),z0(i,"Mobile"),t.customDeviceMap(t=>z0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge:hover svg",C0(i),C0(i,"Tablet"),C0(i,"Mobile"),t.customDeviceMap(t=>C0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg path",L0(i),L0(i),L0(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(P0,{...t}),(0,I.jsx)(j0,{...t})]})},save:()=>null}),i(93240),D0.propTypes={};const N0={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,
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,
6201 6202 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:"",
6202 6203 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:"",
6203 6204 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",
6204 6205 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:""}},
@@ -6210,14 +6211,14 @@
6210 6211 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:""}},
6211 6212 _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,
6212 6213 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:"",
6213 6214 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,
6214 -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 I0(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:N0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-list",httpMethod:"POST",attributes:e})})})})}I0.propTypes={};const V0=(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",
6215 -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)}},O0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},Y0=(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)}},X0=(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)}},B0=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{
6216 -unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},E0=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}},F0=(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 q0(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
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
6217 6218 }),(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,
6218 -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)(N0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(N0.UU,{title:(0,L.__)("Claim List","ablocks"),attributes:N0.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",V0(i),V0(i,"Tablet"),V0(i,"Mobile"),t.customDeviceMap(t=>V0(i,t))),
6219 -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list",O0(i),O0(i,"Tablet"),O0(i,"Mobile"),t.customDeviceMap(t=>O0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-title",Y0(i),Y0(i,"Tablet"),Y0(i,"Mobile"),t.customDeviceMap(t=>Y0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-date",X0(i),X0(i,"Tablet"),X0(i,"Mobile"),t.customDeviceMap(t=>X0(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--claim__list",E0(i),E0(i,"Tablet"),E0(i,"Mobile"),t.customDeviceMap(t=>E0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item:hover",B0(i),B0(i,"Tablet"),B0(i,"Mobile"),t.customDeviceMap(t=>B0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__not-found",F0(i),F0(i,"Tablet"),F0(i,"Mobile"),t.customDeviceMap(t=>F0(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(D0,{...t}),(0,I.jsx)(I0,{...t})]})},save:()=>null}),q0.propTypes={};const $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={
6220 6221 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:"",
6221 6222 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:"",
6222 6223 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:"",
6223 6224 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:"",
@@ -6224,133 +6225,133 @@
6224 6225 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:"",
6225 6226 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,
6226 6227 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:"",
6227 6228 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:"",
6228 -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 G0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{
6229 -blockId:o,name:$0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-count",httpMethod:"POST",attributes:e})})})})}G0.propTypes={};const Z0=(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},K0=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,Hs.qD)(t?.upvoteNumberColor)}};(0,M.xV)($0.UU,"","easy_content_manager")&&(0,o.registerBlockType)($0.UU,{title:(0,L.__)("Claim Count","ablocks"),attributes:$0.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
6230 -;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",Z0(i),Z0(i,"Tablet"),Z0(i,"Mobile"),t.customDeviceMap(t=>Z0(i,t)));const e=i?.wrapper_class||"claim-count-wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,K0(i),K0(i,"Tablet"),K0(i,"Mobile"),t.customDeviceMap(t=>K0(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(q0,{...t}),(0,I.jsx)(G0,{...t})]})},save:()=>null});const J0=window.wp.richText,Q0=()=>{},t2=[{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,
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,
6231 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,
6232 -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"}]}],e2=[{label:(0,L.__)("Post Published","ablocks"),value:"post_published"},{label:(0,L.__)("Post Modified","ablocks"),value:"post_modified"}],i2=Date.now(),o2=[{value:"",label:(0,L.__)("default","ablocks")},{value:"F j, Y",label:(0,
6233 -M.r6)(i2,"F j, Y")},{value:"Y-m-d",label:(0,M.r6)(i2,"Y-m-d")},{value:"m/d/Y",label:(0,M.r6)(i2,"m/d/Y")},{value:"d/m/Y",label:(0,M.r6)(i2,"d/m/Y")},{value:"custom",label:(0,L.__)("custom","ablocks")}],a2=[{value:"",label:(0,L.__)("default","ablocks")},{value:"g:i a",label:(0,M.r6)(i2,"g:i a")},{value:"g:i A",label:(0,M.r6)(i2,"g:i A")},{value:"H:i",label:(0,M.r6)(i2,"H:i")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],l2=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=a2,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=[...a2],m.pop()):(h=c,f="DateFormatOfCurrentDateTime"));const H=p?m:o2,M=T?p?(0,L.__)("Time Format","ablocks"):(0,
6234 -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:e2,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")})]})]})},n2="ablocks/dynamic-content-store",s2=t=>{
6235 -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(n2).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)(n2).setMetaFields({[b]:{isRequestBeingProcessed:!0}});const t={isRequestBeingProcessed:!1},e=()=>(0,r.dispatch)(n2).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
6236 -}),(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})]})},r2=()=>{},b2=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]:{
6237 -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 r2;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 c2;const d2=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,
6238 -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(c2===u)return!1;c2=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)(()=>{
6239 -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())})]})},u2=[{label:(0,L.__)("Current","ablocks"),value:"current"},{label:(0,L.__)("Post Type","ablocks"),
6240 -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"}],p2=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:u2,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)(d2,{...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,{
6241 -className:"ablocks-dynamic-tags-react-select",isSearchable:!0,placeholder:(0,L.__)("Dynamic Tags","ablocks"),options:t2,value:(t=>{let e=null;for(const i of t2){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 t2)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)(s2,{...t,context:l});case"post-date":case"post-time":return(0,I.jsx)(l2,{...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)(b2,{...t});case"author-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Meta Key","ablocks"),attributeValue:u,onChangeHandler:t=>{o({[e]:{...i,authorMetaKey:t}})}})}})()]
6242 -}),(()=>{switch(r){case"current-date-time":return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l2,{...t}),"custom"!==p&&(0,I.jsx)(l2,{...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}})}})]})},m2={source:"current",source_type:"",source_id:"",group_item:"",fallback:"",excerptWords:"",dateTimeType:"",dateTimeFormat:"",customDateTimeFormat:"",taxonomy:"",termsSeparator:", ",metaKey:"",includeContext:"",archiveMetaKey:""},h2=t=>{
6243 -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={...m2};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":
6244 -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:m2})}},[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)(p2,{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,J0.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)({
6245 -dynamicContentAttribute:m2}),{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 Q0;const t=(0,r.select)("ablocks/dynamic-content-store").getPostTermsRelations(),e=t?.[j]?.[m];if(e)return D(e),Q0;l(!0),(0,M.In)({
6246 -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),Q0;const t=(0,r.select)("ablocks/dynamic-content-store").getPostMetaRelations(),e=t?.[j]?.[g],i=e?.value;return i||""===i?(A(i),Q0):(l(!0),e?.isRequestBeingProcessed?Q0:((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),
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),
6247 6248 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]
6248 6249 ;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)({
6249 -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),Q0;let t;switch(d){case"post-custom-field":return I(),Q0;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(),Q0;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":
6250 -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(),Q0;case"comments-number":return Y(),Q0;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(),Q0}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,
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,
6251 6252 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,
6252 -onClick:()=>{n(!0)}}),l&&(0,I.jsx)(h2,{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)
6253 -;r={...o,start:t+1,end:e},r=(0,J0.remove)(r,t,e),r=(0,J0.insert)(r,c),r={...r,start:t}}else o.start!==o.end&&(r=(0,J0.remove)(o,o.start,o.end)),r=(0,J0.insert)(r,c),r={...r,start:o.start};i((0,J0.applyFormat)(r,s))}})]})},attributes:{editable:"contenteditable",source:"data-source",field:"data-field"}});const{RichTextShortcut:g2}=wp.blockEditor,f2="ablocks/mark",y2={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===f2),a=(o?.attributes?.style||"").match(/color:\s*([^;]+)/),l=a?a[1]:"",s=`${t?.includes("gradient")?"background":"background-color"}: ${t};${l?` color: ${l};`:""}`;i((0,J0.applyFormat)(e,{type:f2,attributes:{style:s}}))},u=t=>{b(t)
6254 -;const o=e.activeFormats?.find(t=>t.type===f2);if(!o)return void i((0,J0.applyFormat)(e,{type:f2,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,J0.applyFormat)(e,{type:f2,attributes:{style:n}}))};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(g2,{type:"primary",character:"m",onUse:()=>{const t=e.activeFormats?.some(t=>t.type===f2);t?(i((0,J0.removeFormat)(e,f2)),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__${f2}`}),isVisible:o,toggleVisible:a,
6255 -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,J0.registerFormatType)(f2,y2),(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,
6256 -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 T2=window.wp.editor;var H2=i(78418);var M2={notify(){},get:()=>[]};var x2=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),k2=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),v2=(()=>x2||k2?a.useLayoutEffect:a.useEffect)();Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var _2=Symbol.for("react-redux-context"),R2="undefined"!=typeof globalThis?globalThis:{};function S2(){if(!a.createContext)return{};const t=R2[_2]??=new Map;let e=t.get(a.createContext);return e||(e=a.createContext(null),t.set(a.createContext,e)),e}var W2=S2(),P2=function(t){
6257 -const{children:e,context:i,serverState:o,store:l}=t,n=a.useMemo(()=>{const t=function(t,e){let i,o=M2,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=M2)}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,
6258 -getServerState:o?()=>o:void 0}},[l,o]),s=a.useMemo(()=>l.getState(),[l]);v2(()=>{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||W2;return a.createElement(r.Provider,{value:n},e)};function U2(t=W2){return function(){return a.useContext(t)}}var j2=U2();function w2(t=W2){const e=t===W2?j2:U2(t),i=()=>{const{store:t}=e();return t};return Object.assign(i,{withTypes:()=>i}),i}var z2=w2();function C2(t=W2){const e=t===W2?z2:w2(t),i=()=>e().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var A2=C2(),L2=(t,e)=>t===e;function D2(t=W2){const e=t===W2?j2:U2(t),i=(t,i={})=>{const{equalityFn:o=L2}="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,H2.useSyncExternalStoreWithSelector)(s.addNestedSub,n.getState,r||n.getState,b,o)
6259 -;return a.useDebugValue(c),c};return Object.assign(i,{withTypes:()=>i}),i}var N2=D2(),I2=Symbol.for("immer-nothing"),V2=Symbol.for("immer-draftable"),O2=Symbol.for("immer-state");function Y2(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var X2=Object,B2=X2.getPrototypeOf,E2="constructor",F2="prototype",q2="configurable",$2="enumerable",G2="writable",Z2="value",K2=t=>!!t&&!!t[O2];function J2(t){return!!t&&(e4(t)||s4(t)||!!t[V2]||!!t[E2]?.[V2]||r4(t)||b4(t))}var Q2=X2[F2][E2].toString(),t4=new WeakMap;function e4(t){if(!t||!c4(t))return!1;const e=B2(t);if(null===e||e===X2[F2])return!0;const i=X2.hasOwnProperty.call(e,E2)&&e[E2];if(i===Object)return!0;if(!d4(i))return!1;let o=t4.get(i);return void 0===o&&(o=Function.toString.call(i),t4.set(i,o)),o===Q2}function i4(t,e,i=!0){0===o4(t)?(i?Reflect.ownKeys(t):X2.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((i,o)=>e(o,i,t))}function o4(t){const e=t[O2]
6260 -;return e?e.type_:s4(t)?1:r4(t)?2:b4(t)?3:0}var a4=(t,e,i=o4(t))=>2===i?t.has(e):X2[F2].hasOwnProperty.call(t,e),l4=(t,e,i=o4(t))=>2===i?t.get(e):t[e],n4=(t,e,i,o=o4(t))=>{2===o?t.set(e,i):3===o?t.add(i):t[e]=i},s4=Array.isArray,r4=t=>t instanceof Map,b4=t=>t instanceof Set,c4=t=>"object"==typeof t,d4=t=>"function"==typeof t,u4=t=>"boolean"==typeof t,p4=t=>t.copy_||t.base_,m4=t=>t.modified_?t.copy_:t.base_;function h4(t,e){if(r4(t))return new Map(t);if(b4(t))return new Set(t);if(s4(t))return Array[F2].slice.call(t);const i=e4(t);if(!0===e||"class_only"===e&&!i){const e=X2.getOwnPropertyDescriptors(t);delete e[O2];let i=Reflect.ownKeys(e);for(let o=0;o<i.length;o++){const a=i[o],l=e[a];!1===l[G2]&&(l[G2]=!0,l[q2]=!0),(l.get||l.set)&&(e[a]={[q2]:!0,[G2]:!0,[$2]:l[$2],[Z2]:t[a]})}return X2.create(B2(t),e)}{const e=B2(t);if(null!==e&&i)return{...t};const o=X2.create(e);return X2.assign(o,t)}}function g4(t,e=!1){return y4(t)||K2(t)||!J2(t)||(o4(t)>1&&X2.defineProperties(t,{set:f4,add:f4,
6261 -clear:f4,delete:f4}),X2.freeze(t),e&&i4(t,(t,e)=>{g4(e,!0)},!1)),t}var f4={[Z2]:function(){Y2(2)}};function y4(t){return null===t||!c4(t)||X2.isFrozen(t)}var T4="MapSet",H4="Patches",M4="ArrayMethods",x4={};function k4(t){const e=x4[t];return e||Y2(0),e}var v4,_4=t=>!!x4[t],R4=()=>v4;function S4(t,e){e&&(t.patchPlugin_=k4(H4),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function W4(t){P4(t),t.drafts_.forEach(j4),t.drafts_=null}function P4(t){t===v4&&(v4=t.parent_)}var U4=t=>v4={drafts_:[],parent_:v4,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_4(T4)?k4(T4):void 0,arrayMethodsPlugin_:_4(M4)?k4(M4):void 0};function j4(t){const e=t[O2];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function w4(t,e){e.unfinalizedDrafts_=e.drafts_.length;const i=e.drafts_[0];if(void 0!==t&&t!==i){i[O2].modified_&&(W4(e),Y2(4)),J2(t)&&(t=z4(e,t));const{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(i[O2].base_,t,e)
6262 -}else t=z4(e,i);return function(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&g4(e,i)}(e,t,!0),W4(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==I2?t:void 0}function z4(t,e){if(y4(e))return e;const i=e[O2];if(!i)return I4(e,t.handledSet_,t);if(!A4(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);N4(i,t)}return i.copy_}function C4(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var A4=(t,e)=>t.scope_===e,L4=[];function D4(t,e,i,o){const a=p4(t),l=t.type_;if(void 0!==o&&l4(a,o,l)===e)return void n4(a,o,i,l);if(!t.draftLocations_){const e=t.draftLocations_=new Map;i4(a,(t,i)=>{if(K2(i)){const o=e.get(i)||[];o.push(t),e.set(i,o)}})}const n=t.draftLocations_.get(e)??L4;for(const t of n)n4(a,t,i,l)}function N4(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)
6263 -;o&&i.generatePatches_(t,o,e)}C4(t)}}function I4(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||K2(t)||e.has(t)||!J2(t)||y4(t)||(e.add(t),i4(t,(o,a)=>{if(K2(a)){const e=a[O2];if(A4(e,i)){const i=m4(e);n4(t,o,i,t.type_),C4(e)}}else J2(a)&&I4(a,e,i)})),t}var V4={get(t,e){if(e===O2)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=p4(t);if(!a4(a,e,t.type_))return function(t,e,i){const o=X4(e,i);return o?Z2 in o?o[Z2]:o.get?.call(t.draft_):void 0}(t,a,e);const l=a[e];if(t.finalized_||!J2(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===Y4(t.base_,e)){E4(t);const i=1===t.type_?+e:e,o=F4(t.scope_,l,t,i);return t.copy_[i]=o}return l},has:(t,e)=>e in p4(t),ownKeys:t=>Reflect.ownKeys(p4(t)),set(t,e,i){const o=X4(p4(t),e)
6264 -;if(o?.set)return o.set.call(t.draft_,i),!0;if(!t.modified_){const o=Y4(p4(t),e),a=o?.[O2];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||a4(t.base_,e,t.type_)))return!0;E4(t),B4(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(K2(i)){const a=i[O2];A4(a,o)&&a.callbacks_.push(function(){E4(t);const o=m4(a);D4(t,i,o,e)})}else J2(i)&&t.callbacks_.push(function(){const a=p4(t);3===t.type_?a.has(i)&&I4(i,o.handledSet_,o):l4(a,e,t.type_)===i&&o.drafts_.length>1&&!0===(t.assigned_.get(e)??!1)&&t.copy_&&I4(l4(t.copy_,e,t.type_),o.handledSet_,o)})}(t,e,i)),!0},deleteProperty:(t,e)=>(E4(t),void 0!==Y4(t.base_,e)||e in t.base_?(t.assigned_.set(e,!1),B4(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){
6265 -const i=p4(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{[G2]:!0,[q2]:1!==t.type_||"length"!==e,[$2]:o[$2],[Z2]:i[e]}:o},defineProperty(){Y2(11)},getPrototypeOf:t=>B2(t.base_),setPrototypeOf(){Y2(12)}},O4={};for(let t in V4){let e=V4[t];O4[t]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function Y4(t,e){const i=t[O2];return(i?p4(i):t)[e]}function X4(t,e){if(!(e in t))return;let i=B2(t);for(;i;){const t=Object.getOwnPropertyDescriptor(i,e);if(t)return t;i=B2(i)}}function B4(t){t.modified_||(t.modified_=!0,t.parent_&&B4(t.parent_))}function E4(t){t.copy_||(t.assigned_=new Map,t.copy_=h4(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function F4(t,e,i,o){const[a,l]=r4(e)?k4(T4).proxyMap_(e,i):b4(e)?k4(T4).proxySet_(e,i):function(t,e){const i=s4(t),o={type_:i?1:0,scope_:e?e.scope_:R4(),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=V4;i&&(a=[o],l=O4)
6266 -;const{revoke:n,proxy:s}=Proxy.revocable(a,l);return o.draft_=s,o.revoke_=n,[s,o]}(e,i);return(i?.scope_??R4()).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||!A4(a,o))return;o.mapSetPlugin_?.fixSetContents(a);const l=m4(a);D4(t,a.draft_??a,l,i),N4(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 q4(t){if(!J2(t)||y4(t))return t;const e=t[O2];let i,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=h4(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else i=h4(t,!0);return i4(i,(t,e)=>{n4(i,t,q4(e))},o),e&&(e.finalized_=!1),i}O4.deleteProperty=function(t,e){return O4.set.call(this,t,e,void 0)},O4.set=function(t,e,i){return V4.set.call(this,t[0],e,i,t[0])};var $4=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,
6267 -this.useStrictIteration_=!1,this.produce=(t,e,i)=>{if(d4(t)&&!d4(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(d4(e)||Y2(6),void 0===i||d4(i)||Y2(7),J2(t)){const a=U4(this),l=F4(0,t,void 0);let n=!0;try{o=e(l),n=!1}finally{n?W4(a):P4(a)}return S4(a,i),w4(o,a)}if(!t||!c4(t)){if(o=e(t),void 0===o&&(o=t),o===I2&&(o=void 0),this.autoFreeze_&&g4(o,!0),i){const e=[],a=[];k4(H4).generateReplacementPatches_(t,o,{patches_:e,inversePatches_:a}),i(e,a)}return o}Y2(1)},this.produceWithPatches=(t,e)=>{if(d4(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]},u4(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),u4(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),u4(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){var e;J2(t)||Y2(8),K2(t)&&(K2(e=t)||Y2(10),t=q4(e));const i=U4(this),o=F4(0,t,void 0)
6268 -;return o[O2].isManual_=!0,P4(i),o}finishDraft(t,e){const i=t&&t[O2];i&&i.isManual_||Y2(9);const{scope_:o}=i;return S4(o,e),w4(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=k4(H4).applyPatches_;return K2(t)?o(t,e):this.produce(t,t=>o(t,e))}},G4=$4.produce;function Z4(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 K4=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),J4=()=>Math.random().toString(36).substring(7).split("").join("."),Q4={INIT:`@@redux/INIT${J4()}`,REPLACE:`@@redux/REPLACE${J4()}`,
6269 -PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${J4()}`};function t3(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 e3(t,e,i){if("function"!=typeof t)throw new Error(Z4(2));if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Z4(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Z4(1));return i(e3)(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(Z4(3));return a}function d(t){if("function"!=typeof t)throw new Error(Z4(4));if(r)throw new Error(Z4(5));let e=!0;b();const i=s++;return n.set(i,t),function(){if(e){if(r)throw new Error(Z4(6));e=!1,b(),n.delete(i),l=null}}}function u(t){if(!t3(t))throw new Error(Z4(7))
6270 -;if(void 0===t.type)throw new Error(Z4(8));if("string"!=typeof t.type)throw new Error(Z4(17));if(r)throw new Error(Z4(9));try{r=!0,a=o(a,t)}finally{r=!1}return(l=n).forEach(t=>{t()}),t}return u({type:Q4.INIT}),{dispatch:u,subscribe:d,getState:c,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Z4(10));o=t,u({type:Q4.REPLACE})},[K4]:function(){const t=d;return{subscribe(e){if("object"!=typeof e||null===e)throw new Error(Z4(11));function i(){const t=e;t.next&&t.next(c())}return i(),{unsubscribe:t(i)}},[K4](){return this}}}}}function i3(...t){return 0===t.length?t=>t:1===t.length?t[0]:t.reduce((t,e)=>(...i)=>t(e(...i)))}function o3(t){return({dispatch:e,getState:i})=>o=>a=>"function"==typeof a?a(e,i,t):o(a)}var a3=o3(),l3=o3,n3="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?i3:i3.apply(null,arguments)
6271 -},s3=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,t=>t&&"function"==typeof t.match);function r3(t,e){function i(...i){if(e){let o=e(...i);if(!o)throw new Error(P3(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 t3(t)&&"type"in t&&"string"==typeof t.type}(e)&&e.type===t,i}var b3=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 c3(t){return J2(t)?G4(t,()=>{}):t}function d3(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}var u3=t=>e=>{setTimeout(e,t)};function p3(t){const e={},i=[];let o;const a={addCase(t,i){
6272 -const o="string"==typeof t?t:t.type;if(!o)throw new Error(P3(28));if(o in e)throw new Error(P3(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 m3(...t){return e=>t.some(t=>((t,e)=>s3(t)?t.match(e):t(e))(t,e))}var h3=["name","message","stack","code"],g3=class{constructor(t,e){this.payload=t,this.meta=e}_type},f3=class{constructor(t,e){this.payload=t,this.meta=e}_type},y3=t=>{if("object"==typeof t&&null!==t){const e={};for(const i of h3)"string"==typeof t[i]&&(e[i]=t[i]);return e}return{message:String(t)}},T3="External signal was aborted",H3=(()=>{function t(t,e,i){const o=r3(t+"/fulfilled",(t,e,i,o)=>({payload:t,meta:{...o||{},arg:i,requestId:e,requestStatus:"fulfilled"}
6273 -})),a=r3(t+"/pending",(t,e,i)=>({payload:void 0,meta:{...i||{},arg:e,requestId:t,requestStatus:"pending"}})),l=r3(t+"/rejected",(t,e,o,a,l)=>({payload:a,error:(i&&i.serializeError||y3)(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(T3):n.addEventListener("abort",()=>m(T3),{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."}
6274 -;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 g3(t,e),fulfillWithValue:(t,e)=>new f3(t,e)})).then(e=>{if(e instanceof g3)throw e;return e instanceof f3?o(e.payload,c,t,e.meta):o(e,c,t)})])}catch(e){n=e instanceof g3?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(M3)})}},{pending:a,rejected:l,fulfilled:o,settled:m3(l,o),typePrefix:t})}return t.withTypes=()=>t,t})();function M3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}
6275 -var x3=Symbol.for("rtk-slice-createasyncthunk");function k3(t,e){return`${t}/${e}`}function v3({creators:t}={}){const e=t?.asyncThunk?.[x3];return function(t){const{name:i,reducerPath:o=i}=t;if(!i)throw new Error(P3(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(P3(12));if(i in n.sliceCaseReducersByType)throw new Error(P3(13));return n.sliceCaseReducersByType[i]=e,s},addMatcher:(t,e)=>(n.sliceMatchers.push({matcher:t,reducer:e}),s),
6276 -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?p3(t.extraReducers):[t.extraReducers],a={...e,...n.sliceCaseReducersByType};return function(t){let e,[l,s,r]=p3(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=()=>c3(t());else{const i=c3(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(K2(t)){const o=e(t,i);return void 0===o?t:o}if(J2(t))return G4(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)}
6277 -l.forEach(o=>{const l=a[o],n={reducerName:o,type:k3(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(P3(17));l=o.reducer,n=o.prepare}else l=o;a.addCase(t,l).exposeCaseReducer(e,l).exposeAction(e,n?r3(t,n):r3(t))}(n,l,s):function({type:t,reducerName:e},i,o,a){if(!a)throw new Error(P3(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||S3,pending:s||S3,rejected:r||S3,settled:b||S3})}(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){
6278 -function o(t){let a=t[e];return void 0===a&&i&&(a=d3(d,o,m)),a}function a(e=b){const o=d3(c,i,()=>new WeakMap);return d3(o,e,()=>{const o={};for(const[a,l]of Object.entries(t.selectors??{}))o[a]=_3(l,e,()=>d3(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 _3(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 R3=v3();function S3(){}var{assign:W3}=Object;function P3(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 U3=H3("ablocks/fetchAdminMenuItems",t=>{try{
6279 -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"}))}}),j3=R3({name:"menus",initialState:{data:M.MK?JSON.parse(M.MK):{}},extraReducers:t=>{t.addCase(U3.pending,t=>{t.loading=!0}).addCase(U3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(U3.rejected,t=>{t.loading=!1})}}).reducer,w3=R3({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}}}),z3=w3.reducer,{showNotification:C3}=w3.actions,A3=H3("ablocks/FetchSettings",()=>(0,M.In)({action:"ablocks/get_settings"}).then(t=>t.data.data)),L3=H3("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(C3({message:(0,L.__)("Settings Saved!","ablocks"),
6280 -isShow:!0,type:"success"})),t):(i.dispatch(C3({message:(0,L.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(C3({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),D3=R3({name:"settings",initialState:{loading:!1},extraReducers:t=>{t.addCase(A3.pending,t=>{t.loading=!0}).addCase(A3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(A3.rejected,t=>{t.loading=!1}).addCase(L3.pending,t=>{t.loading=!0}).addCase(L3.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(L3.rejected,t=>{t.loading=!1})}}).reducer,N3=H3("ablocks/fetchBlockVisibility",()=>(0,M.In)({action:"ablocks/get_blocks_visibility"}).then(t=>t.data.data)),I3=H3("ablocks/saveBlockVisibility",t=>(0,M.In)({action:"ablocks/save_block_visibility",...t}).then(t=>t.data.data)),V3=H3("ablocks/saveBulkBlockVisibility",t=>(0,M.In)({action:"ablocks/save_bulk_block_visibility",
6281 -blocks:t}).then(t=>t.data.data)),O3=R3({name:"blocks",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.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(V3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload})}}).reducer,Y3=H3("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(C3({message:(0,L.__)("Failed to fetch entries!","ablocks"),isShow:!0,type:"error"})),a.rejectWithValue(t.data.data||"Failed to fetch entries!")))}),X3=H3("ablocks/exportEntriesAsCSV",()=>(0,M.In)({action:"ablocks/get_entries",export_csv:1}).then(t=>t.data.data)),B3=H3("ablocks/fetchEntry",({id:t},e)=>(0,M.In)({action:"ablocks/get_entry",entry_id:t
6282 -}).then(t=>t?.data?.success?t.data.data:(e.dispatch(C3({message:(0,L.__)("Failed to fetch entry!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to fetch entry!")))),E3=(H3("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(C3({message:(0,L.__)("Successfully updated entry!","ablocks"),isShow:!0,type:"success"})),t.data.data):(i.dispatch(C3({message:(0,L.__)("Failed to update entry!","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(t.data.data||"Failed to update entry!")))),H3("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(C3({message:(0,L.__)("Successfully deleted entries!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(C3({message:(0,L.__)("Failed to delete entries!","ablocks"),isShow:!0,type:"error"})),
6283 -e.rejectWithValue(t.data.data||"Failed to delete entries!"))))),F3=H3("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(C3({message:(0,L.__)("Successfully marked entries as read!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(C3({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!")))),q3=H3("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(C3({message:(0,L.__)("Successfully marked entries as unread!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(C3({message:(0,L.__)("Failed to mark entries as unread!","ablocks"),isShow:!0,type:"error"})),
6284 -e.rejectWithValue(t.data.data||"Failed to mark entries as unread!")))),$3=H3("ablocks/sendEntriesToTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/send_entries_to_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(C3({message:(0,L.__)("Successfully sent entries to trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(C3({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!")))),G3=H3("ablocks/restoreEntriesFromTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/restore_entries_from_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(C3({message:(0,L.__)("Successfully restored entries from trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(C3({message:(0,L.__)("Failed to restore entries from trash!","ablocks"),isShow:!0,type:"error"})),
6285 -e.rejectWithValue(t.data.data||"Failed to restore entries from trash!")))),Z3=H3("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(C3({message:(0,L.__)("Settings Saved!","ablocks"),isShow:!0,type:"success"})),t):(i.dispatch(C3({message:(0,L.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(C3({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),K3=R3({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(Y3.pending,t=>{t.loading=!0}).addCase(Y3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(Y3.rejected,t=>{t.loading=!1}).addCase(X3.pending,t=>{t.loading=!0
6286 -}).addCase(X3.fulfilled,(t,e)=>{t.loading=!1,t.csv_data=e.payload.csv_data}).addCase(X3.rejected,t=>{t.loading=!1}).addCase(F3.pending,t=>{t.loading=!0}).addCase(F3.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(F3.rejected,t=>{t.loading=!1}).addCase(q3.pending,t=>{t.loading=!0}).addCase(q3.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(q3.rejected,t=>{t.loading=!1}).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?.data.id!==parseInt(t.id))}).addCase($3.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?.data.id===parseInt(t.id)?{...t,status:e?.payload?.data.status}:t)}).addCase(G3.rejected,t=>{t.loading=!1
6287 -}).addCase(E3.pending,t=>{t.loading=!0}).addCase(E3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.filter(t=>!e.payload.id_of_deleted_entries.includes(t.id))}).addCase(E3.rejected,t=>{t.loading=!1}).addCase(B3.pending,t=>{t.loading=!0}).addCase(B3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(B3.rejected,t=>{t.loading=!1}).addCase(Z3.pending,t=>{t.loading=!0}).addCase(Z3.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(Z3.rejected,t=>{t.loading=!1})}}),J3=K3.reducer,{updateCurrentPage:Q3,updateItemPerPage:t6}=K3.actions,e6=H3("ablocks/fetchAddons",t=>{try{return(0,M.In)({action:"ablocks/addons/get_all_addons"}).then(e=>e.data?.success?e.data?.data:(t.dispatch(C3({message:e.data?.data?.message??__("Some thing went wrong","ablocks"),isShow:!0,type:"error"})),e.data))}catch(e){t.dispatch(C3({message:e?.response?.data?.message??e?.message,isShow:!0,type:"error"}))}}),i6=H3("ablocks/saveAddon",({addon:t,status:e},i)=>{try{return(0,M.In)({
6288 -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(C3({message:t?.data.data,isShow:!0,type:"error"})),t.data))}catch(t){i.dispatch(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),o6=R3({name:"addons",initialState:{},extraReducers:t=>{t.addCase(e6.fulfilled,(t,e)=>e.payload).addCase(i6.fulfilled,(t,e)=>e.payload)}}).reducer,a6=H3("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(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),
6289 -a.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),l6=H3("ablocks/fetchTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t)}`).then(t=>t.data)}catch(t){e.dispatch(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),n6=H3("ablocks/createNewTB",(t,e)=>{try{return M.nC.post(M.MF+"ablocks_tb",t).then(t=>201===t.status?(e.dispatch(C3({message:(0,L.__)("Successfully created.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(C3({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(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),s6=H3("ablocks/updateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,{...t}).then(t=>200===t.status?(e.dispatch(C3({message:(0,
6290 -L.__)("Successfully updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(C3({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(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),r6=H3("ablocks/statusUpdateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,t).then(t=>200===t.status?(e.dispatch(C3({message:(0,L.__)("Successfully Status updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(C3({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(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message
6291 -})}}),b6=H3("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(C3({message:(0,L.__)("Deleted!","ablocks"),isShow:!0,type:"success"})),t.data.previous):(e.dispatch(C3({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(C3({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),c6=H3("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(C3({message:(0,L.__)("Moved to trash!","ablocks"),isShow:!0,type:"success"})),i.data):(e.dispatch(C3({message:(0,L.__)("Failed to trashed.","ablocks"),
6292 -isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to trashed.","ablocks"),success:!1}))}catch(t){return e.dispatch(C3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),d6=H3("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(C3({message:(0,L.__)("Them Restored Successfully!","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(C3({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(C3({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),u6=R3({name:"themeBuilder",initialState:{data:[],rowsPerPage:10,status:"all",
6293 -page:1,search:""},reducers:{updateTBCurrentPage:(t,e)=>{t.page=e.payload},updateTBItemPerPage:(t,e)=>{t.per_page=e.payload}},extraReducers:t=>{t.addCase(a6.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(l6.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(n6.fulfilled,(t,e)=>{t.data.length?t.data=[...t.data,e.payload]:t.data=[e.payload]}).addCase(s6.fulfilled,(t,e)=>{t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(b6.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(c6.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(r6.fulfilled,(t,e)=>{t.loading=!1,
6294 -t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(d6.fulfilled,(t,e)=>{t.loading=!1,t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)})}}),{updateTBCurrentPage:p6,updateTBItemPerPage:m6}=u6.actions,h6=u6.reducer;i(79448);let g6=[];const f6=function(t){const e=function(t){const{thunk:e=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let l=new b3;return e&&(function(t){return"boolean"==typeof t}(e)?l.push(a3):l.push(l3(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(!t3(i))throw new Error(P3(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:Q4.INIT}))throw new Error(Z4(12))
6295 -;if(void 0===i(void 0,{type:Q4.PROBE_UNKNOWN_ACTION()}))throw new Error(Z4(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(Z4(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=i3;a&&(c=n3({trace:!1,..."object"==typeof a&&a}));const d=function(...t){return e=>(i,o)=>{const a=e(i,o);let l=()=>{throw new Error(Z4(15))};const n={getState:a.getState,dispatch:(t,...e)=>l(t,...e)},s=t.map(t=>t(n));return l=i3(...s)(a.dispatch),{...a,dispatch:l}}}(...b),u=(t=>function(e){const{autoBatch:i=!0}=e??{};let o=new b3(t);return i&&o.push(((t={type:"raf"})=>e=>(...i)=>{const o=e(...i);let a=!0,l=!1,n=!1
6296 -;const s=new Set,r="tick"===t.type?queueMicrotask:"raf"===t.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:u3(10):"callback"===t.type?t.queueNotification:u3(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 e3(r,n,c(..."function"==typeof s?s(u):u()))}({reducer:{adminmenu:j3,settings:D3,notification:z3,blocks:O3,submissions:J3,addons:o6,themeBuilder:h6},middleware:t=>t().concat(...g6)}),y6=f6;var T6=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===H6}(t)}(t)},H6="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
6297 -;function M6(t,e){return!1!==e.clone&&e.isMergeableObject(t)?k6((i=t,Array.isArray(i)?[]:{}),t,e):t;var i}function x6(t,e,i){return t.concat(e).map(function(t){return M6(t,i)})}function k6(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||x6,i.isMergeableObject=i.isMergeableObject||T6;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]=M6(t[e],i)}),Object.keys(e).forEach(function(a){i.isMergeableObject(e[a])&&t[a]?o[a]=k6(t[a],e[a],i):o[a]=M6(e[a],i)}),o}(t,e,i):M6(e,i)}k6.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,i){return k6(t,i,e)},{})};const v6=k6;var _6=i(11331),R6=i.n(_6),S6=i(88055),W6=i.n(S6),P6=i(30115),U6=i.n(P6);var j6=i(32629),w6=i.n(j6),z6=i(42072),C6=i.n(z6);function A6(){return A6=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]
6298 -;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},A6.apply(this,arguments)}function L6(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 D6(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var N6=(0,a.createContext)(void 0);N6.displayName="FormikContext";var I6=N6.Provider,V6=N6.Consumer;function O6(){var t=(0,a.useContext)(N6);return t}var Y6=function(t){return Array.isArray(t)&&0===t.length},X6=function(t){return"function"==typeof t},B6=function(t){return null!==t&&"object"==typeof t},E6=function(t){return String(Math.floor(Number(t)))===t},F6=function(t){return"[object String]"===Object.prototype.toString.call(t)},q6=function(t){return 0===a.Children.count(t)},$6=function(t){return B6(t)&&X6(t.then)};function G6(t,e,i,o){void 0===o&&(o=0);for(var a=C6()(e);t&&o<a.length;)t=t[a[o++]]
6299 -;return o===a.length||t?void 0===t?i:t:i}function Z6(t,e,i){for(var o=w6()(t),a=o,l=0,n=C6()(e);l<n.length-1;l++){var s=n[l],r=G6(t,n.slice(0,l+1));if(r&&(B6(r)||Array.isArray(r)))a=a[s]=w6()(r);else{var b=n[l+1];a=a[s]=E6(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 K6(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];B6(s)?i.get(s)||(i.set(s,!0),o[n]=Array.isArray(s)?[]:{},K6(s,e,i,o[n])):o[n]=e}return o}var J6={},Q6={};function t8(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=L6(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=A6({validateOnChange:i,validateOnBlur:l,validateOnMount:s,onSubmit:d},u),m=(0,
6300 -a.useRef)(p.initialValues),h=(0,a.useRef)(p.initialErrors||J6),g=(0,a.useRef)(p.initialTouched||Q6),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:W6()(p.initialValues),errors:W6()(p.initialErrors)||J6,touched:W6()(p.initialTouched)||Q6,status:W6()(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 A6({},t,{values:e.payload});case"SET_TOUCHED":return A6({},t,{touched:e.payload});case"SET_ERRORS":return U6()(t.errors,e.payload)?t:A6({},t,{errors:e.payload});case"SET_STATUS":return A6({},t,{status:e.payload});case"SET_ISSUBMITTING":return A6({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return A6({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return A6({},t,{
6301 -values:Z6(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return A6({},t,{touched:Z6(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return A6({},t,{errors:Z6(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return A6({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return A6({},t,{touched:K6(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return A6({},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(J6):$6(a)?a.then(function(t){i(t||J6)},function(t){o(t)}):i(a)})},[p.validate]),_=(0,a.useCallback)(function(t,e){var i=p.validationSchema,o=X6(i)?i(e):i,a=e&&o.validateAt?o.validateAt(e,t):function(t,e,i){void 0===i&&(i=!1);var o=i8(t);return e[i?"validateSync":"validate"](o,{abortEarly:!1,context:o})}(t,o)
6302 -;return new Promise(function(t,e){a.then(function(){t(J6)},function(i){"ValidationError"===i.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return Z6(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;G6(e,n.path)||(e=Z6(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 X6(T.current[t].validate)}),i=e.length>0?e.map(function(e){return R(e,G6(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=Z6(t,e[o],i)),t},{})})},[R]),W=(0,a.useCallback)(function(t){
6303 -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 v6.all([e,i,o],{arrayMerge:o8})})},[p.validate,p.validationSchema,S,v,_]),P=l8(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&&U6()(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,
6304 -submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(p.onReset){var n=p.onReset(x.values,G);$6(n)?n.then(l):l()}else l()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,a.useEffect)(function(){!0!==y.current||U6()(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&&!U6()(h.current,p.initialErrors)&&(h.current=p.initialErrors||J6,k({type:"SET_ERRORS",payload:p.initialErrors||J6}))},[c,p.initialErrors]),(0,a.useEffect)(function(){c&&!0===y.current&&!U6()(g.current,p.initialTouched)&&(g.current=p.initialTouched||Q6,k({type:"SET_TOUCHED",payload:p.initialTouched||Q6}))},[c,p.initialTouched]),(0,a.useEffect)(function(){c&&!0===y.current&&!U6()(f.current,p.initialStatus)&&(f.current=p.initialStatus,k({type:"SET_STATUS",payload:p.initialStatus}))},[c,p.initialStatus,p.initialTouched]);var j=l8(function(t){
6305 -if(T.current[t]&&X6(T.current[t].validate)){var e=G6(x.values,t),i=T.current[t].validate(e);return $6(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:G6(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=l8(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=l8(function(t,e){var o=X6(t)?t(x.values):t;return k({
6306 -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=l8(function(t,e,o){var a=X6(e)?e(G6(x.values,t)):e;return k({type:"SET_FIELD_VALUE",payload:{field:t,value:a}}),(void 0===o?i:o)?P(Z6(x.values,t,a)):Promise.resolve()}),I=(0,a.useCallback)(function(t,e){var i,o=e,a=t;if(!F6(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}(G6(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})
6307 -}(d):b}o&&N(o,a)},[N,x.values]),V=l8(function(t){if(F6(t))return function(e){return I(e,t)};I(t)}),O=l8(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=l8(function(t){if(F6(t))return function(e){return Y(e,t)};Y(t)}),B=(0,a.useCallback)(function(t){X6(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=l8(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"
6308 -}),t}).catch(function(t){if(y.current)throw k({type:"SUBMIT_FAILURE"}),t})}if(y.current&&(k({type:"SUBMIT_FAILURE"}),e))throw t})}),$=l8(function(t){t&&t.preventDefault&&X6(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&X6(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=l8(function(){return d(x.values,G)}),K=l8(function(t){t&&t.preventDefault&&X6(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&X6(t.stopPropagation)&&t.stopPropagation(),U()}),J=(0,a.useCallback)(function(t){return{value:G6(x.values,t),error:G6(x.errors,t),touched:!!G6(x.touched,t),initialValue:G6(m.current,t),initialTouched:!!G6(g.current,t),initialError:G6(h.current,t)}},[x.errors,x.touched,x.values]),Q=(0,
6309 -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=B6(t),i=e?t.name:t,o=G6(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!U6()(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&&X6(r)?r(p):r:x.errors&&0===Object.keys(x.errors).length},[r,et,x.errors,p]);return A6({},x,{initialValues:m.current,initialErrors:h.current,initialTouched:g.current,initialStatus:f.current,handleBlur:X,handleChange:V,handleReset:K,handleSubmit:$,resetForm:U,setErrors:A,
6310 -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 e8(t){var e=t8(t),i=t.component,o=t.children,l=t.render,n=t.innerRef;return(0,a.useImperativeHandle)(n,function(){return e}),(0,a.createElement)(I6,{value:e},i?(0,a.createElement)(i,e):l?l(e):o?X6(o)?o(e):q6(o)?null:a.Children.only(o):null)}function i8(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)||R6()(t)?i8(t):""!==t?t:void 0}):R6()(t[o])?e[o]=i8(t[o]):e[o]=""!==t[o]?t[o]:void 0}return e}function o8(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)
6311 -;o[a]=l?v6(Array.isArray(e)?[]:{},e,i):e}else i.isMergeableObject(e)?o[a]=v6(t[a],e,i):-1===t.indexOf(e)&&o.push(e)}),o}var a8="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function l8(t){var e=(0,a.useRef)(t);return a8(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 n8(t){var e=t.validate,i=t.name,o=t.render,l=t.children,n=t.as,s=t.component,r=t.className,b=L6(t,["validate","name","render","children","as","component","className"]),c=L6(O6(),["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(A6({name:i},b)),m=c.getFieldMeta(i),h={field:p,form:c};if(o)return o(A6({},h,{meta:m}));if(X6(l))return l(A6({},h,{meta:m}));if(s){if("string"==typeof s){
6312 -var g=b.innerRef,f=L6(b,["innerRef"]);return(0,a.createElement)(s,A6({ref:g},p,f,{className:r}),l)}return(0,a.createElement)(s,A6({field:p,form:c},b,{className:r}),l)}var y=n||"input";if("string"==typeof y){var T=b.innerRef,H=L6(b,["innerRef"]);return(0,a.createElement)(y,A6({ref:T},p,H,{className:r}),l)}return(0,a.createElement)(y,A6({},p,b,{className:r}),l)}var s8=(0,a.forwardRef)(function(t,e){var i=t.action,o=L6(t,["action"]),l=null!=i?i:"#",n=O6(),s=n.handleReset,r=n.handleSubmit;return(0,a.createElement)("form",A6({onSubmit:r,ref:e,onReset:s,action:l},o))});function r8(t){var e=function(e){return(0,a.createElement)(V6,null,function(i){return(0,a.createElement)(t,A6({},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)}s8.displayName="Form";var b8=function(t,e,i){var o=c8(t);return o.splice(e,0,i),o},c8=function(t){if(t){if(Array.isArray(t))return[].concat(t)
6313 -;var e=Object.keys(t).map(function(t){return parseInt(t)}).reduce(function(t,e){return e>t?e:t},0);return Array.from(A6({},t,{length:e+1}))}return[]},d8=function(t,e){var i="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||B6(t)){var e=c8(t);return i(e)}return t}},u8=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=d8(o,t),n=d8(e,t),s=Z6(i.values,l,t(G6(i.values,l))),r=o?a(G6(i.errors,l)):void 0,b=e?n(G6(i.touched,l)):void 0;return Y6(r)&&(r=void 0),Y6(b)&&(b=void 0),A6({},i,{values:s,errors:o?Z6(i.errors,l,r):i.errors,touched:e?Z6(i.touched,l,b):i.touched})})},i.push=function(t){return i.updateArrayField(function(e){return[].concat(c8(e),[W6()(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=c8(t),a=o[e];return o[e]=o[i],o[i]=a,o}(i,t,e)
6314 -},!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=c8(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 b8(i,t,e)},function(e){return b8(e,t,null)},function(e){return b8(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=c8(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)}},
6315 -i.handleRemove=function(t){return function(){return i.remove(t)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(D6(i)),i.pop=i.pop.bind(D6(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&&!U6()(G6(t.formik.values,t.name),G6(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?c8(i):[];return e||(e=o[t]),X6(o.splice)&&o.splice(t,1),X6(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,
6316 -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=A6({},t,{form:L6(e.formik,["validate","validationSchema"]),name:n});return i?(0,a.createElement)(i,s):o?o(s):l?"function"==typeof l?l(s):q6(l)?null:a.Children.only(l):null},e}(a.Component);u8.defaultProps={validateOnChange:!0};var p8=r8(u8);const m8=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"],
6317 -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 h8(){const{values:t,setFieldValue:e}=O6();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)(n8,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row__label-input",
6318 -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:G6(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(p8,{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)(n8,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row-custom__left--label-input",
6319 -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:G6(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(p8,{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)(p8,{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 g8(){const{values:t,setFieldValue:e}=O6();return(0,I.jsxs)("div",{
6320 -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)(n8,{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:m8(G6(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,I.jsx)(p8,{name:"global_typography",children:t=>(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--trash-can-slash",
6321 -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)(n8,{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:m8(G6(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,I.jsx)(p8,{name:"global_typography",children:t=>(0,I.jsx)("span",{
6322 -className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a),style:{cursor:"pointer"}})})]})]},i.id)}),(0,I.jsx)(p8,{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",
6323 -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)(n8,{name:"global_font_family_fallback",as:"input",type:"text",className:"ablocks-typography-fallback__input",placeholder:(0,L.__)("Sans-serif","ablocks")})]})]})}const f8=({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,
6324 -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)})]})},y8=({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 T8(){
6325 -const{values:t,setFieldValue:e}=O6();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",{
6326 -className:"ablocks-typography-panel__title",children:(0,L.__)("Link","ablocks")}),(0,I.jsx)(Ub,{content:(0,I.jsx)(y8,{type:"_",values:t,setFieldValue:e}),style:(0,I.jsx)(y8,{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)(f8,{title:i,values:t,setFieldValue:e})]},i))]})}const H8=t=>"string"!=typeof t||isNaN(t)||""===t?t:Number(t),M8=(t,e)=>{if((t=H8(t))===(e=H8(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(!M8(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(!M8(t[a],e[a]))return!1}return!0}return t===e},x8=()=>{
6327 -const t=N2(t=>t.settings),e=A2();return(0,a.useEffect)(()=>{t?.data||e(A3())},[]),(0,I.jsx)(e8,{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(L3({values:t})).unwrap();const i=wp.data.dispatch("core/editor");i?.savePost&&await i.savePost(),await e(A3()).unwrap(),setTimeout(()=>{window.location.reload()},100)}catch(t){i.setSubmitting(!1)}},enableReinitialize:!0,
6328 -children:({handleSubmit:t,isSubmitting:e,values:i,initialValues:o})=>{const l=!M8(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){
6329 -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)(s8,{className:"ablocks-global-settings",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(h8,{}),(0,
6330 -I.jsx)(It,{}),(0,I.jsx)(g8,{})]}),style:(0,I.jsx)(T8,{}),firstTabLabel:(0,L.__)("Design System","ablocks"),secondTabLabel:(0,L.__)("Theme Style","ablocks")})})}})},{registerPlugin:k8}=wp.plugins,{__:v8}=wp.i18n;k8("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",{
6331 -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)(T2.PluginSidebar,{name:"ablocks-global-settings",title:v8("aBlocks Settings","ablocks"),children:(0,I.jsx)(P2,{store:y6,children:(0,I.jsx)(x8,{})})})});const _8={taxonomies:{isRequestBeingProcessed:!1,data:void 0},metaFields:{},postTermsRelations:{},postMetaRelations:{},recentPosts:void 0,recentMediasUrls:void 0,authors:{},authorsMeta:{},postsCommentsCount:{},featuredMediasData:{},allTaxonomiesTermsData:{},authorData:{},authorProfilePictureUrl:void 0},R8=(0,r.createReduxStore)("ablocks/dynamic-content-store",{reducer:(t=_8,e)=>{switch(e.type){
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){
6332 6333 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":{
6333 6334 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}),
6334 6335 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,
6335 -getFeaturedMediasData:t=>t.featuredMediasData,getAllTaxonomiesTermsData:t=>t.allTaxonomiesTermsData,getRecentMediasUrls:t=>t.recentMediasUrls,getAuthorsData:t=>t.authorData,getAuthorProfilePictureUrl:t=>t.authorProfilePictureUrl},initialState:_8});(0,r.register)(R8);const S8=window.wp.domReady;var W8=i.n(S8);const P8="docs-internal-guid-";function U8(t){const e=document.implementation.createHTMLDocument("");e.body.innerHTML=t;const i=e.querySelector(`[id^="${P8}"]`);return i&&i.parentElement===e.body&&1===e.body.children.length?i:e.body}const j8={A:["href"],IMG:["src","alt","title","width","height"],TD:["colspan","rowspan"],TH:["colspan","rowspan"]},w8=["style","script","meta","link","title"];function z8(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}}function C8(t,e){const i=new RegExp(`(?:^|;)\\s*${e}\\s*:\\s*([^;]+)`,"i").exec(t);return i?i[1].trim().toLowerCase():""}const A8=window.wp.apiFetch;var L8=i.n(A8)
6336 -;async function D8(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)
6337 -;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 L8()({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 N8="ablocks/atomic-text",I8=["H1","H2","H3","H4","H5","H6"];function V8(t,e={},i=[]){return(0,o.getBlockType)(t)?(0,o.createBlock)(t,e,i):null}function O8(t){for(const[e,i,o]of t){const t=V8(e,i,o);if(t)return t}return null}function Y8(t){return(t.innerHTML||"").replace(/\u00a0/g," ").trim()}function X8(t){const e=/^<strong>([\s\S]*)<\/strong>$/.exec(t);return!e||e[1].includes("<strong>")?t:e[1]}function B8(t,e){if(!e)return null;const i=/^h[1-6]$/.test(t);return O8([[N8,{tag:t,content:e}],i?["ablocks/heading",{heading:e,headingTag:t}]:["ablocks/paragraph",{paragraph:e}],i?["core/heading",{content:e,
6338 -level:Number(t.slice(1))}]:["core/paragraph",{content:e}]])}function E8(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}),O8([["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 F8(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(...F8(t)));const e=t.cloneNode(!0);return Array.from(e.querySelectorAll("ul, ol")).forEach(t=>t.remove()),Y8(e)}).filter(Boolean);if(!o.length)return i;const a=V8((0,b.applyFilters)("ablocks.googleDocs.listBlock","ablocks/lists",{ordered:e}),{markerType:e?"number":"disc",
6339 -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=>V8("core/list-item",{content:t})).filter(Boolean),n=l.length?V8("core/list",{ordered:e},l):null;return n?[n,...i]:[...o.map(t=>B8("p",t)).filter(Boolean),...i]}function q8(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(Y8).filter(Boolean).join("<br>"):Y8(t)}(t),o={content:e?X8(i):i,tag:e?"th":"td"};e&&(o.scope="col");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 $8(t,e){
6340 -const i=(e?t.slice(1):t).map(t=>({cells:q8(t,!1)}));return V8("core/table",{head:e?[{cells:q8(t[0],!0)}]:[],body:i,foot:[]})}function G8(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),V8("ablocks/table-cell",i,function(t,e){const i=e5(t).map(t=>{if(!e||N8!==t.name)return t;const i=X8(t.attributes?.content||"");return i===t.attributes?.content?t:V8(N8,{...t.attributes,content:i},t.innerBlocks)||t});return i.length?i:[V8(N8,{tag:"p",content:""})].filter(Boolean)}(t,e))}).filter(Boolean);return i.length?V8("ablocks/table-row",{},i):null}function Z8(t,e){const i=[];if(e){const e=G8(t[0],!0);if(e){const t=V8("ablocks/table-header",{},[e]);t&&i.push(t)}}const o=(e?t.slice(1):t).map(t=>G8(t,!1)).filter(Boolean);if(o.length){const t=V8("ablocks/table-body",{},o);t&&i.push(t)}
6341 -return i.length?V8("ablocks/table",{tableCreated:!0,isHeader:e},i):null}function K8(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})?[$8,Z8]:[Z8,$8];for(const t of o){const o=t(e,i);if(o)return o}return e.map(t=>B8("p",Y8(t))).filter(Boolean)}const J8="table, ul, ol, dl, h1, h2, h3, h4, h5, h6, hr, p, div, blockquote, figure, pre, section, article, img, iframe";function Q8(t){const e=[],i=t.ownerDocument.createElement("p"),o=()=>{const t=B8("p",Y8(i));t&&e.push(t),i.innerHTML=""};return Array.from(t.childNodes).forEach(t=>{!function(t){
6342 -return 1===t.nodeType&&(t.matches(J8)||!!t.querySelector(J8))}(t)?i.appendChild(t.cloneNode(!0)):(o(),e.push(...t.matches(J8)?t5(t):Q8(t)))}),o(),e}function t5(t){const{tagName:e}=t;return I8.includes(e)?[B8(e.toLowerCase(),X8(Y8(t)))].filter(Boolean):"IMG"===e?[E8(t)].filter(Boolean):"UL"===e||"OL"===e?F8(t):"TABLE"===e?[K8(t)].flat().filter(Boolean):"HR"===e?[O8([["ablocks/divider"],["core/separator"]])].filter(Boolean):"BLOCKQUOTE"===e||"SECTION"===e||"ARTICLE"===e||"FIGURE"===e?e5(t):t.querySelector(J8)?Q8(t):function(t){return!t.querySelector("img, hr, br, iframe")&&""===(t.textContent||"").replace(/\u00a0/g," ").trim()}(t)?[]:[B8("p",Y8(t))].filter(Boolean)}function e5(t){const e=[];let i="";const o=()=>{const t=i.replace(/\u00a0/g," ").trim();if(i="",t){const i=B8("p",t);i&&e.push(i)}};return Array.from(t.childNodes).forEach(t=>{3!==t.nodeType?1===t.nodeType&&(o(),e.push(...t5(t))):i+=t.textContent}),o(),e}
6343 -const i5="ablocks-google-docs-paste",o5=["styles","globalClasses","alignment","customCSS"],a5=new WeakSet;function l5(t){return!!t&&t.name===N8&&!(t.attributes?.content||"").trim()}async function n5(t){const e=(0,r.dispatch)("core/notices"),i=function(t){const e=t.ownerDocument;return w8.forEach(e=>{t.querySelectorAll(e).forEach(t=>t.remove())}),t.querySelectorAll("hr").forEach(t=>{const e=t.getAttribute("style")||"";("none"===C8(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"));if(!e)return void z8(t);t.setAttribute("href",e)}if(function(t){const e=t.getAttribute("style")||"";if(!e)return[]
6344 -;const i=[],o=C8(e,"font-weight");("bold"===o||"bolder"===o||parseInt(o,10)>=600)&&i.push("strong"),"italic"===C8(e,"font-style")&&i.push("em");const a=C8(e,"text-decoration")+" "+C8(e,"text-decoration-line");a.includes("underline")&&!t.closest("a")&&i.push("u"),a.includes("line-through")&&i.push("s");const l=C8(e,"vertical-align");"super"===l?i.push("sup"):"sub"===l&&i.push("sub");const n=C8(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 z8(t);if("B"===t.tagName&&"normal"===C8(t.getAttribute("style")||"","font-weight"))return void z8(t);const e=j8[t.tagName]||[];Array.from(t.attributes).forEach(i=>{e.includes(i.name.toLowerCase())||t.removeAttribute(i.name)})}),t.querySelectorAll("li > p").forEach(z8),
6345 -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}(U8(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. */
6346 -(0,L._n)("Importing %d image from Google Docs…","Importing %d images from Google Docs…",a,"ablocks"),a),{id:i5,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 D8(t,e,o)&&l++}})),{total:i.length,imported:l}}(i,(0,r.select)("core/editor")?.getCurrentPostId?.()||0),n=function(t){return e5(t)}(i);if(e?.removeNotice(i5),!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)||l5(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,
6347 -r.select)("core/block-editor").getBlock(s.clientId);l5(t)&&n[0]?.name===N8&&o5.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. */
6348 -(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:i5,type:"snackbar"})}function s5(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(P8)})(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,U8(i))||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),n5(i).catch(()=>{(0,r.dispatch)("core/notices")?.createErrorNotice((0,L.__)("The Google Docs content could not be pasted.","ablocks"),{id:i5,type:"snackbar"})})))}function r5(t){
6349 -t&&!a5.has(t)&&(a5.add(t),t.addEventListener("paste",s5,!0))}W8()(()=>{window.self===window.top&&(r5(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&r5(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const b5=window.wp.dom,c5="ablocks/atomic-text",d5=["styles","globalClasses","alignment","customCSS"],u5=/<!--\s*wp:/,p5=new WeakSet;function m5(t){if(t.defaultPrevented||!t.clipboardData)return;const e=(0,r.select)("core/block-editor");if(!e||!(0,o.getBlockType)(c5))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)!==c5)return;const l=i?.ownerDocument;if(!l||!function(t,e){const i=t.getElementById(`block-${e}`);return!!i?.isContentEditable&&(0,b5.isEntirelySelected)(i)
6350 -}(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(u5.test(n)||u5.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={};d5.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)(c5,{...e,tag:"p",content:t.attributes?.content||""}):"core/heading"===t.name?(0,o.createBlock)(c5,{...e,tag:`h${t.attributes?.level||2}`,content:t.attributes?.content||""}):t}(t,p));m.some(t=>t.name===c5)&&(t.preventDefault(),t.stopImmediatePropagation(),1!==m.length||m[0].name!==c5?u(a,m,m.length-1,-1):d(a,{content:m[0].attributes.content,
6351 -tag:m[0].attributes.tag}))}function h5(t){t&&!p5.has(t)&&(p5.add(t),t.addEventListener("paste",m5,!0))}W8()(()=>{window.self===window.top&&(h5(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&h5(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const g5=(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})
6352 -},"withQuietHousekeeping");(0,b.addFilter)("editor.BlockEdit","ablocks/block-housekeeping/edit",g5)},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,
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,
6353 6354 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,
6354 6355 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,
6355 6356 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"},
6356 6357 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:{
@@ -6423,29 +6424,30 @@
6423 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",
6424 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,
6425 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:{
6426 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",
6427 -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",defaultValue:10,defaultValueMobile:10,defaultValueTablet:10,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:[{
6428 -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,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,
6429 -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$)({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:""
6430 -},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,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:[],
6431 -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:{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,{
6432 -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",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:{
6433 -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",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){
6434 -"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,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
6435 -},...(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")}},46804(t,e,i){"use strict";i.d(e,{AW:()=>o,Dc:()=>l,GM:()=>a,I3:()=>s,j0:()=>r,sg:()=>n})
6436 -;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})},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",
6437 -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$)({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
6438 -},menuItemBackground:{type:"string",default:"",copyStyle:!0},menuItemBackgroundH:{type:"string",default:"",copyStyle:!0},menuItemTransition:{type:"number",default:0,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)}},60690(t,e,i){"use strict";i.d(e,{
6439 -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:""},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",
6440 -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},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,
6441 -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});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$)({
6442 -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:{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,
6443 -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,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},
6444 -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:{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",
6445 -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",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,
6446 -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:{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",
6447 -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:""},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",
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",
6448 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$)({
6449 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",
6450 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)
6451 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",
@@ -6501,9 +6503,9 @@
6501 6503 "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})
6502 6504 ;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:{}})
6503 6505 ;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])
6504 6506 ;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,{
6505 -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(14030),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,
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,
6506 6508 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,
6507 6509 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}
6508 6510 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",{
6509 6511 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})
@@ -6542,9 +6544,9 @@
6542 6544 },p={
6543 6545 icons:["500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon","amazon-pay","amilia","android","angellist","angrycreative","angular","app-store","app-store-ios","apper","apple","apple-pay","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","behance-square","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger","blogger-b","bluetooth","bluetooth-b","bootstrap","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons","creative-commons-by","creative-commons-nc","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nd","creative-commons-pd","creative-commons-pd-alt","creative-commons-remix","creative-commons-sa","creative-commons-sampling","creative-commons-sampling-plus","creative-commons-share","creative-commons-zero","critical-role","css3","css3-alt","cuttlefish","d-and-d","d-and-d-beyond","dailymotion","dashcube","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dribbble-square","dropbox","drupal","dyalog","earlybirds","ebay","edge","edge-legacy","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook","facebook-f","facebook-messenger","facebook-square","fantasy-flight-games","fedex","fedora","figma","firefox","firefox-browser","first-order","first-order-alt","firstdraft","flickr","flipboard","fly","font-awesome","font-awesome-alt","font-awesome-flag","fonticons","fonticons-fi","fort-awesome","fort-awesome-alt","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg","gg-circle","git","git-alt","git-square","github","github-alt","github-square","gitkraken","gitlab","gitter","glide","glide-g","gofore","goodreads","goodreads-g","google","google-drive","google-pay","google-play","google-plus","google-plus-g","google-plus-square","google-wallet","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hacker-news-square","hackerrank","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","innosoft","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes","itunes-note","java","jedi-order","jenkins","jira","joget","joomla","js","js-square","jsfiddle","kaggle","keybase","keycdn","kickstarter","kickstarter-k","korvue","laravel","lastfm","lastfm-square","leanpub","less","line","linkedin","linkedin-in","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medium-m","medrt","meetup","megaport","mendeley","microblog","microsoft","mix","mixcloud","mizuni","modx","monero","napster","neos","nimblr","node","node-js","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odnoklassniki-square","old-republic","opencart","openid","opera","optin-monster","orcid","osi","page4","pagelines","palfed","patreon","paypal","penny-arcade","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper","pied-piper-alt","pied-piper-hat","pied-piper-pp","pied-piper-square","pinterest","pinterest-p","pinterest-square","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit","reddit-alien","reddit-square","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shopware","simplybuilt","sistrix","sith","sketch","skyatlas","skype","slack","slack-hash","slideshare","snapchat","snapchat-ghost","snapchat-square","soundcloud","sourcetree","speakap","speaker-deck","spotify","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam","steam-square","steam-symbol","sticker-mule","strava","stripe","stripe-s","studiovinari","stumbleupon","stumbleupon-circle","superpowers","supple","suse","swift","symfony","teamspeak","telegram","telegram-plane","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","tiktok","trade-federation","trello","tripadvisor","tumblr","tumblr-square","twitch","twitter","twitter-square","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","usb","usps","ussunnah","vaadin","viacoin","viadeo","viadeo-square","viber","vimeo","vimeo-square","vimeo-v","vine","vk","vnv","vuejs","watchman-monitoring","waze","weebly","weibo","weixin","whatsapp","whatsapp-square","whmcs","wikipedia-w","windows","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress","wordpress-simple","wpbeginner","wpexplorer","wpforms","wpressr","xbox","xing","xing-square","y-combinator","yahoo","yammer","yandex","yandex-international","yarn","yelp","yoast","youtube","youtube-square","zhihu"]
6544 6546 },m=(t={})=>new Promise(e=>{const i=wp.media({title:(0,s.__)("Select or Upload Media","ablocks"),button:{text:(0,s.__)("Use this media","ablocks")},multiple:!1,...t});i.on("select",function(){return e(i.state().get("selection").first().toJSON())}),i.open()}),h=(t,e="",i="icon")=>{const o=t[i+"Type"],s=t[i+"Shape"],c=(0,b.qD)(t[i+"BgColor"]),d=t[i+"Color"];let u={};if("default"!==o&&("stacked"===o?"circle"===s?u={background:c||"#ddd","border-radius":"50%",padding:".5em"}:"square"===s&&(u={background:c||"#ddd",padding:".5em"}):"framed"===o&&("circle"===s?u={background:c||"transparent",padding:".5em","border-radius":"50%",border:`2px solid ${d||"#69727d"}`}:"square"===s&&(u={background:c||"transparent",padding:".5em",border:`2px solid ${d||"#69727d"}`}))),t[i+"Sizing"]&&!t[i+"ImageUrl"]){const o=t[i+"Sizing"]["value"+e];let a=t[i+"Sizing"]["valueUnit"+e]||t[i+"Sizing"].valueUnit;a||(a="px"),u["font-size"]=`${o}${a}`}t[i+"ImageUrl"]&&(u["font-size"]="unset");const p=(0,
6545 6547 r.Zy)(t?.iconPadding,{unit:"px"}),m=(0,r.Zy)(t[i+"Border"],{unitWidth:"px",unitRadius:"px"});return{background:c,...u,..."default"!==o?{background:c,...u,...(0,a.qD)(p,"padding",e),...(0,l.qD)(m,e),...(0,n.qD)(t[i+"BoxShadow"],e)}:{}}},g=(t,e="",i="icon")=>{const o=(0,r.Zy)(t[i+"Border"],{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,b.qD)(t[i+"HoverBgColor"]),...(0,l.a9)(o,e),...(0,n.a9)(t[i+"BoxShadow"],e)}},f=(t,e="",i="icon")=>{const o=t[i+"Type"],a=t[i+"Shape"],l=(0,b.qD)(t[i+"Color"]);let n=t[i+"Rotated"];n&&n["value"+e]&&(n=n["value"+e]);let s={};"default"!==o&&("stacked"===o?("circle"===a||"square"===a)&&(s={fill:l||"#000000"}):"framed"===o&&("circle"===a||"square"===a)&&(s={fill:l||"#69727d"}));let r=t[i+"Rotated"]["valueUnit"+e]||t[i+"Rotated"].valueUnit;return r||(r="px"),n&&(s.transform=`rotate(${n}${r})`),{fill:l||"#69727d",...s}},y=(t,e="",i="icon")=>{const o=t[i+"Rotated"],a={};let l=o;if(o&&o["value"+e]&&(l=o["value"+e]),
6546 -l&&(a.transform=`rotate(${l}${l.unit||"deg"})`),t[i+"Sizing"]&&t[i+"ImageUrl"]){const o=t[i+"Sizing"]["value"+e];let l=t[i+"Sizing"]["valueUnit"+e]||t[i+"Sizing"].valueUnit;l||(l="px"),a.width=`${o}${l}`}return t[i+"ImageUrl"]||(a.width="unset"),{height:"auto",...a}},T=(t,e="",i="icon")=>{const o=t[i+"RotateHover"],a=t[i+"HoverColor"],l=t[i+"transitionDuration"],n={};let s=o;return o&&o["value"+e]&&(s=o["value"+e]),s&&(n.transform=`rotate(${s}deg)`),a&&(n.fill=a),void 0!==l&&0!==l&&(n.transition=`${l}s`),{...n}}},88554(t,e,i){"use strict";i.d(e,{D$:()=>a,jM:()=>l,tJ:()=>o}),i(10790);const o=()=>({linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}),a=t=>({[t]:{type:"object",default:o()}}),l=t=>{const e={};return t&&t.split(",").forEach(t=>{const[i,o]=t.split("|");e[i]=o||""}),e}},42377(t,e,i){"use strict";i.d(e,{D$:()=>r,qD:()=>b});var o=i(66087),a=i.n(o),l=i(36168);const n={attributeName:"",isResponsive:!1,defaultValue:"",
6548 +l&&(a.transform=`rotate(${l}${l.unit||"deg"})`),t[i+"Sizing"]&&t[i+"ImageUrl"]){const o=t[i+"Sizing"]["value"+e];let l=t[i+"Sizing"]["valueUnit"+e]||t[i+"Sizing"].valueUnit;l||(l="px"),a.width=`${o}${l}`}return t[i+"ImageUrl"]||(a.width="unset"),{height:"auto",...a}},T=(t,e="",i="icon")=>{const o=t[i+"RotateHover"],a=t[i+"HoverColor"],l=t[i+"transitionDuration"],n={};let s=o;return o&&o["value"+e]&&(s=o["value"+e]),s&&(n.transform=`rotate(${s}deg)`),a&&(n.fill=a),void 0!==l&&0!==l&&(n.transition=`${l}s`),{...n}}},88554(t,e,i){"use strict";i.d(e,{D$:()=>a,jM:()=>l,tJ:()=>o}),i(10790);const o=()=>({linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}),a=t=>({[t]:{type:"object",default:o()}}),l=t=>{const e={};return t&&t.split(",").forEach(t=>{const[i,o]=t.split("|");e[i]=o||""}),e}},42377(t,e,i){"use strict";i.d(e,{D$:()=>r,l_:()=>c,qD:()=>b});var o=i(66087),a=i.n(o),l=i(36168);const n={attributeName:"",isResponsive:!1,defaultValue:"",
6547 6549 defaultValueTablet:"",defaultValueMobile:"",hasUnit:!1,unitDefaultValue:"px",attributeObjectKey:"value"},s=t=>{const{isResponsive:e,defaultValue:i,defaultValueTablet:o,defaultValueMobile:a,hasUnit:l,unitDefaultValue:s,attributeObjectKey:r}={...n,...t},b=l?{[r+"Unit"]:s,[r+"UnitTablet"]:"",[r+"UnitMobile"]:""}:{};return e?{[r]:i,[r+"Tablet"]:o,[r+"Mobile"]:a,...b}:!e&&l?{[r]:i,[r+"Unit"]:s}:i},r=t=>{const e={...n,...t};let i;return i=e.isResponsive?{[e.attributeName]:{type:"object",default:s(e)}}:!e.isResponsive&&e.hasUnit?{[e.attributeName]:{type:"object",default:s(e)}}:{[e.attributeName]:{type:"number",default:s(e)}},e.copyStyle&&(i[e.attributeName].copyStyle=e.copyStyle),i},b=t=>{if(!t.property)return{};t=(0,l.Zy)(t,{attributeValue:"",isResponsive:!1,defaultValue:"",defaultValueTablet:"",defaultValueMobile:"",hasUnit:!1,unitDefaultValue:"px",attributeObjectKey:"value",device:""})
6548 6550 ;const{attributeValue:e,property:i,attributeObjectKey:o,device:n,unitDefaultValue:s,defaultValue:r,defaultValueTablet:b,defaultValueMobile:d,isResponsive:u,hasUnit:p}=t,m={};if(!u&&!p)return"value"===i?(m.value=`${e.value}`,m.valueUnit=`${s}`):m[i]=`${e}${s}`,m;const h={"":r,Tablet:b,Mobile:d},g=(0,l.By)(n,t=>{const i=a().get(e,`${o}${t}`);return(0,l.a4)(i)?i:h[t]});if((0,l.a4)(g)){const t=c({attributeValue:e,attributeObjectKey:o,unitDefaultValue:s,device:n});"value"===i?(m.value=`${g}`,m.valueUnit=`${t}`):m[i]=`${g}${t}`}return m},c=({attributeValue:t,attributeObjectKey:e,unitDefaultValue:i,device:o})=>(0,l.By)(o,i=>a().get(t,`${e}Unit${i}`))||i},74411(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a});var o=i(49315);const a=()=>({color:"",blur:"",horizontal:"",vertical:""}),l=t=>({[t]:{type:"object",default:a(),copyStyle:!0}}),n=t=>{const e={...a(),...t};if(""!==e.color||""!==e.horizontal||""!==e.vertical||""!==e.blur){const t={}
6549 6551 ;return t["text-shadow"]=`${e.horizontal||0}px ${e.vertical||0}px ${e.blur||10}px ${(0,o.qD)(e.color||"rgba(0, 0, 0, 0.3)")}`,t}}},16867(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a});var o=i(49315);const a=(t=!1,e={})=>t?{stroke:"",strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",...e}:{strokeWidth:"",strokeWidthUnit:"px",stroke:""},l=(t,e)=>({[t]:{type:"object",default:a(e),copyStyle:!0}}),n=(t,e="")=>{const i={...a(!!e),...t};if(""!==i["strokeWidth"+e]){const t={};return t["-webkit-text-stroke-width"]=`${i["strokeWidth"+e]}${i["strokeWidthUnit"+e]}`,t["stroke-width"]=`${i["strokeWidth"+e]}${i["strokeWidthUnit"+e]}`,t["-webkit-text-stroke-color"]=`${(0,o.qD)(i.stroke||"#000")}`,t.stroke=`${(0,o.qD)(i.stroke||"#000")}`,t}}},11244(t,e,i){"use strict";i.d(e,{TE:()=>a});let o=null;const a=async()=>(await(o||(o=i.e(8399).then(i.bind(i,18722))),o)).googleFontsInEditor},2489(t,e,i){"use strict"
6550 6552 ;i.d(e,{D$:()=>g,H8:()=>M,Kx:()=>p,Wy:()=>y,iF:()=>H,ju:()=>x,nx:()=>m,pd:()=>T,qD:()=>f,tJ:()=>h});var o=i(27723),a=i(36168),l=i(11244);let n={},s={};(0,l.TE)().then(t=>{n=t?.fontVariants||{},s=t?.fontCategories||{}});const r=["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"],b={"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",display:"sans-serif",handwriting:"cursive"},c=t=>{const e=String(t||"").trim();return e?/[^a-zA-Z0-9_-]/.test(e)||/(^|\s)[0-9-]/.test(e)?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:e:""},d={},u=({href:t,id:e=!1,rel:i="stylesheet",extraAttribute:o={},document:a=a})=>{const l=a.createElement("link");l.href=t,e&&(l.id=e),i&&(l.rel=i);const{attributeName:n,attributeValue:s=""}=o;return n&&l.setAttribute(n,s),l},p=(t,e)=>{if(!e)return!1;let i=!0;for(const e in t)if(0!==t[e].length)for(const o of t[e]){const t=d[e];t?.includes(o)||(i=!1,